fw: app: Fix reset behavior

This commit is contained in:
Markus Koch 2024-09-22 11:00:08 +02:00
parent 40ba2ea4dc
commit fff84ff85e

View File

@ -6,6 +6,8 @@
#define TIMER_INMENU TIMER_APP0 #define TIMER_INMENU TIMER_APP0
#define TIMER_AUX TIMER_APP1 #define TIMER_AUX TIMER_APP1
static int clr = 1;
void axl_test() void axl_test()
{ {
int ret; int ret;
@ -118,7 +120,7 @@ void wdt_test()
void app_init() void app_init()
{ {
return; clr = 1;
} }
void app_suspend() void app_suspend()
@ -130,7 +132,6 @@ void app_suspend()
enum app_return app_mainloop() enum app_return app_mainloop()
{ {
static int app_sel = 0; static int app_sel = 0;
static int clr = 1;
if (button_event(EV_PRESS)) { if (button_event(EV_PRESS)) {
app_sel = (app_sel + 1) % APP_COUNT; app_sel = (app_sel + 1) % APP_COUNT;