Skip to content

Commit

Permalink
Save 12 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
armel committed Jul 24, 2024
1 parent 5b30394 commit 921fd98
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ui/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 921fd98

Please sign in to comment.