UM battery: changed default for auto-off feature to "disabled"
Especially on 8266, the usermod can cause unexpected shut-downs in default configuration, when A0 is not connected to a battery voltage measurement circuit.
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
// auto-off feature
|
// auto-off feature
|
||||||
#ifndef USERMOD_BATTERY_AUTO_OFF_ENABLED
|
#ifndef USERMOD_BATTERY_AUTO_OFF_ENABLED
|
||||||
#define USERMOD_BATTERY_AUTO_OFF_ENABLED true
|
#define USERMOD_BATTERY_AUTO_OFF_ENABLED false
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef USERMOD_BATTERY_AUTO_OFF_THRESHOLD
|
#ifndef USERMOD_BATTERY_AUTO_OFF_THRESHOLD
|
||||||
@@ -78,4 +78,4 @@
|
|||||||
|
|
||||||
#ifndef USERMOD_BATTERY_LOW_POWER_INDICATOR_DURATION
|
#ifndef USERMOD_BATTERY_LOW_POWER_INDICATOR_DURATION
|
||||||
#define USERMOD_BATTERY_LOW_POWER_INDICATOR_DURATION 5
|
#define USERMOD_BATTERY_LOW_POWER_INDICATOR_DURATION 5
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user