Fix bug with F_LOCK menu
This commit is contained in:
2
main.c
2
main.c
@@ -123,6 +123,7 @@ void Main(void)
|
||||
|
||||
if (BootMode == BOOT_MODE_F_LOCK)
|
||||
{
|
||||
|
||||
gF_LOCK = true; // flag to say include the hidden menu items
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
gEeprom.KEY_LOCK = 0;
|
||||
@@ -132,6 +133,7 @@ void Main(void)
|
||||
#else
|
||||
gMenuCursor = 64; // move to hidden section, fix me if change... !!!
|
||||
#endif
|
||||
gSubMenuSelection = gSetting_F_LOCK;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -920,7 +920,11 @@ void UI_DisplayMenu(void)
|
||||
break;
|
||||
|
||||
case MENU_F_LOCK:
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
if(!gIsInSubMenu && gUnlockAllTxConfCnt>0 && gUnlockAllTxConfCnt<3)
|
||||
#else
|
||||
if(!gIsInSubMenu && gUnlockAllTxConfCnt>0 && gUnlockAllTxConfCnt<10)
|
||||
#endif
|
||||
strcpy(String, "READ\nMANUAL");
|
||||
else
|
||||
strcpy(String, gSubMenu_F_LOCK[gSubMenuSelection]);
|
||||
|
Reference in New Issue
Block a user