Replace BOOT_MODE_MENU_LOCK with BOOT_MODE_RESCUE_OPS

This commit is contained in:
Armel FAUVEAU
2024-11-21 15:57:47 +01:00
parent 52e7701ba4
commit d5c0b7a68d
3 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ BOOT_Mode_t BOOT_GetMode(void)
#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS
if (Keys[0] == (10 + gEeprom.SET_KEY))
{
return BOOT_MODE_MENU_LOCK; // Secret KEY pressed
return BOOT_MODE_RESCUE_OPS; // Secret KEY pressed
}
#endif

View File

@@ -25,7 +25,7 @@ enum BOOT_Mode_t
BOOT_MODE_NORMAL = 0,
BOOT_MODE_F_LOCK,
#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS
BOOT_MODE_MENU_LOCK,
BOOT_MODE_RESCUE_OPS,
#endif
#ifdef ENABLE_AIRCOPY
BOOT_MODE_AIRCOPY

2
main.c
View File

@@ -132,7 +132,7 @@ void Main(void)
BOOT_Mode_t BootMode = BOOT_GetMode();
#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS
if (BootMode == BOOT_MODE_MENU_LOCK)
if (BootMode == BOOT_MODE_RESCUE_OPS)
{
gEeprom.MENU_LOCK = !gEeprom.MENU_LOCK;
SETTINGS_SaveSettings();