From 6bb004f5880f5a2fa862e54ab720dfc6e768c18d Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 10 Apr 2024 19:16:21 -0700 Subject: [PATCH] Fix powerscreen.c --- src/ui/powerscreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/powerscreen.c b/src/ui/powerscreen.c index 268281a..24d2818 100644 --- a/src/ui/powerscreen.c +++ b/src/ui/powerscreen.c @@ -48,7 +48,7 @@ static bool power_screen_dispatch(PowerScreen *screen, screen->choice = (screen->choice + state->up_down - state->down_down) % POWER_SCREEN_NCHOICE; if (screen->choice < 0) { - screen->choice = POWER_SCREEN_NCHOICE - screen->choice; + screen->choice = POWER_SCREEN_NCHOICE + screen->choice; } if (state->force_draw || state->up_down || state->down_down) { lcd_clear(state->lcd);