From d5c0b7a68d918d60e344df2c84eeef27dd3b7dba Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Thu, 21 Nov 2024 15:57:47 +0100 Subject: [PATCH] Replace BOOT_MODE_MENU_LOCK with BOOT_MODE_RESCUE_OPS --- helper/boot.c | 2 +- helper/boot.h | 2 +- main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helper/boot.c b/helper/boot.c index c54f241..fb97dc8 100644 --- a/helper/boot.c +++ b/helper/boot.c @@ -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 diff --git a/helper/boot.h b/helper/boot.h index 1954802..f36448f 100644 --- a/helper/boot.h +++ b/helper/boot.h @@ -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 diff --git a/main.c b/main.c index e60d87a..0143dbf 100644 --- a/main.c +++ b/main.c @@ -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();