Camble / Safe-Power-Monitor

Camble - SudoMod
http://sudomod.com/forum/memberlist.php?mode=viewprofile&u=76
21 stars 7 forks source link

Low battery alert on BangGood/Generic power supply hangs the system #10

Open Camble opened 6 years ago

Camble commented 6 years ago

With AdafruitPowerBoost set to False, the script enters an infinite loop when the battery gets low.

A workaround until I fix this is to set batteryGPIO to None. This will disable the low battery alert completely.

Camble commented 6 years ago

Hopefully 294ffdb02e0d2c5176781d8e55cd182814a6c1db fixes this issue

ianporter13 commented 6 years ago

I've been having this issue but the updated script killed safe shutdown completely (power switch no longer worked) and was getting an error of batteryWatcher not defined

'd out line 265 and it works again with the switch - waiting for battery to go down and see what happens

Camble commented 6 years ago

@ianporter13 Which line gave you the error batteryWatcher not defined?

ianporter13 commented 6 years ago

line 265 gave the error