From 41cd1c7cc124aaafbce786fd37e242d187eeeae0 Mon Sep 17 00:00:00 2001 From: Pavel Semerad Date: Thu, 2 Jun 2011 20:03:37 +0200 Subject: [PATCH] added more battery hysteresis, about 1.5V --- input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.c b/input.c index 165d08b..e3760c1 100644 --- a/input.c +++ b/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); }