mirror of
https://github.com/semerad/gt3b.git
synced 2026-03-25 11:26:59 +01:00
added more battery hysteresis, about 1.5V
This commit is contained in:
2
input.c
2
input.c
@@ -326,7 +326,7 @@ static void read_ADC(void) {
|
||||
}
|
||||
else {
|
||||
// bat OK, but apply some hysteresis to not switch quickly ON/OFF
|
||||
if (menu_battery_low && adc_battery > battery_low_raw + 5) {
|
||||
if (menu_battery_low && adc_battery > battery_low_raw + 100) {
|
||||
menu_battery_low = 0;
|
||||
awake(MENU);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user