From 7f146a58572cb7c1aa43c4b93804cdc7e31faf3d Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Wed, 19 Feb 2025 02:11:39 +0100 Subject: [PATCH] Fix bug if BOOT_MODE_F_LOCK --- helper/boot.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/helper/boot.c b/helper/boot.c index ace0ab9..39e2030 100644 --- a/helper/boot.c +++ b/helper/boot.c @@ -74,6 +74,9 @@ void BOOT_ProcessMode(BOOT_Mode_t Mode) { if (Mode == BOOT_MODE_F_LOCK) { + #ifdef ENABLE_FEAT_F4HWN_RESUME_STATE + gEeprom.CURRENT_STATE = 0; // Don't resume is active... + #endif GUI_SelectNextDisplay(DISPLAY_MENU); } #ifdef ENABLE_AIRCOPY @@ -111,8 +114,8 @@ void BOOT_ProcessMode(BOOT_Mode_t Mode) gEeprom.BACKLIGHT_TIME = 61; gEeprom.KEY_LOCK = 0; - #ifdef ENABLE_FEAT_F4HWN - gEeprom.CURRENT_STATE = 0; // Don't scan if scan resume is active... + #ifdef ENABLE_FEAT_F4HWN_RESUME_STATE + gEeprom.CURRENT_STATE = 0; // Don't resume is active... #endif GUI_SelectNextDisplay(DISPLAY_AIRCOPY);