From cec6bd2c0bd49bdbb362ce68aec4f5a743f31eca Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Fri, 31 Jul 2020 20:49:40 +0200 Subject: [PATCH] des: Do not wait for SBC at boot Waiting here may cause the controller to "freeze" in an active state, draining the battery. --- firmware/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/main.c b/firmware/main.c index d4bb7f4..98842d6 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -110,7 +110,7 @@ int main() lcd_title(PSTR("Starting up."), PSTR("Please wait.")); pm_sbc_on(); _delay_ms(10); - while (!get_sbc_state()); + timer_set(TIMID_POWEROFF, MS_TO_TICKS(TIME_POWEROFF)); lcd_title(PSTR("Starting up."), PSTR("Please wait..."));