From 921fd983d6ad6a5222bfade51fd88f01d9ffa999 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Wed, 24 Jul 2024 03:41:01 +0200 Subject: [PATCH] Save 12 bytes --- ui/menu.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ui/menu.c b/ui/menu.c index 9175197..c07235d 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -1079,12 +1079,7 @@ void UI_DisplayMenu(void) if (UI_MENU_GetCurrentMenuId() == MENU_SLIST1 || UI_MENU_GetCurrentMenuId() == MENU_SLIST2 || UI_MENU_GetCurrentMenuId() == MENU_SLIST3) { - if(UI_MENU_GetCurrentMenuId() == MENU_SLIST1) - i = 0; - else if(UI_MENU_GetCurrentMenuId() == MENU_SLIST2) - i = 1; - else if(UI_MENU_GetCurrentMenuId() == MENU_SLIST3) - i = 2; + i = UI_MENU_GetCurrentMenuId() - MENU_SLIST1; char *pPrintStr = String;