From fff84ff85e4b41fe6802c716373e2ea2e80e9c38 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sun, 22 Sep 2024 11:00:08 +0200 Subject: [PATCH] fw: app: Fix reset behavior --- firmware/app.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/app.c b/firmware/app.c index 9262690..1a7ca5a 100644 --- a/firmware/app.c +++ b/firmware/app.c @@ -6,6 +6,8 @@ #define TIMER_INMENU TIMER_APP0 #define TIMER_AUX TIMER_APP1 +static int clr = 1; + void axl_test() { int ret; @@ -118,7 +120,7 @@ void wdt_test() void app_init() { - return; + clr = 1; } void app_suspend() @@ -130,7 +132,6 @@ void app_suspend() enum app_return app_mainloop() { static int app_sel = 0; - static int clr = 1; if (button_event(EV_PRESS)) { app_sel = (app_sel + 1) % APP_COUNT;