Fix #133 - force deep sleep if battery reaches 10%

This commit is contained in:
geeksville
2020-05-17 04:51:36 -07:00
parent ef1463a6a9
commit efc239533c
3 changed files with 12 additions and 5 deletions

View File

@@ -13,6 +13,7 @@
#define EVENT_BLUETOOTH_PAIR 7
#define EVENT_NODEDB_UPDATED 8 // NodeDB has a big enough change that we think you should turn on the screen
#define EVENT_CONTACT_FROM_PHONE 9 // the phone just talked to us over bluetooth
#define EVENT_LOW_BATTERY 10 // Battery is critically low, go to sleep
extern Fsm powerFSM;