mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Save 12 bytes
This commit is contained in:
1 parent
5b30394cb9
commit
921fd983d6
1 file changed
+1
-6
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user