Skip to content

Commit

Permalink
UM battery: changed default for auto-off feature to "disabled"
Browse files Browse the repository at this point in the history
Especially on 8266, the usermod can cause unexpected shut-downs in default configuration, when A0 is not connected to a battery voltage measurement circuit.
  • Loading branch information
softhack007 authored Dec 10, 2023
1 parent 6cd9d80 commit 782628b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usermods/Battery/battery_defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

// auto-off feature
#ifndef USERMOD_BATTERY_AUTO_OFF_ENABLED
#define USERMOD_BATTERY_AUTO_OFF_ENABLED true
#define USERMOD_BATTERY_AUTO_OFF_ENABLED false
#endif

#ifndef USERMOD_BATTERY_AUTO_OFF_THRESHOLD
Expand All @@ -78,4 +78,4 @@

#ifndef USERMOD_BATTERY_LOW_POWER_INDICATOR_DURATION
#define USERMOD_BATTERY_LOW_POWER_INDICATOR_DURATION 5
#endif
#endif

0 comments on commit 782628b

Please sign in to comment.