We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06170bc commit 8699361Copy full SHA for 8699361
adafruit_lc709203f.py
@@ -245,7 +245,7 @@ def low_voltage_alarm_percent(self) -> int:
245
def low_voltage_alarm_percent(self, percent: int) -> None:
246
"""Set the low voltage alarm percentage.
247
Value of 0 disables the alarm"""
248
- if not 0 < percent < 100:
+ if not 0 <= percent <= 100:
249
raise ValueError("alarm voltage percent must be 0-100")
250
self._write_word(LC709203F_CMD_ALARMPERCENT, percent)
251
0 commit comments