From 2b05990a2cc7b0167c5f13c88c7e16ad0f5665c8 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Fri, 3 Apr 2026 04:28:39 +0200 Subject: [PATCH] Refactor hidden menu entry to start from first hidden item --- App/main.c | 6 +----- App/misc.h | 4 +--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/App/main.c b/App/main.c index 1eb13710..a6a54862 100644 --- a/App/main.c +++ b/App/main.c @@ -157,11 +157,7 @@ void Main(void) #ifdef ENABLE_FEAT_F4HWN gEeprom.KEY_LOCK = 0; SETTINGS_SaveSettings(); - gMenuCursor = MENU_ITEMS; - - #ifdef ENABLE_NOAA - gMenuCursor += 1; // move to hidden section, fix me if change... !!! - #endif + gMenuCursor = UI_MENU_GetMenuIdx(FIRST_HIDDEN_MENU_ITEM); gSubMenuSelection = gSetting_F_LOCK; #endif } diff --git a/App/misc.h b/App/misc.h index c0932404..52ee3336 100644 --- a/App/misc.h +++ b/App/misc.h @@ -39,8 +39,6 @@ #define FM_CHANNELS_MAX 48 #define MR_CHANNELS_MAX 1024 #define MR_CHANNELS_LIST 24 -#define MENU_ITEMS 69 - // CACHE-BASED OPTIMIZATION: Only keep active channels in RAM // Full array stays in EEPROM, cache holds ~10 most-used channels #define MR_CHANNELS_CACHE_SIZE 10 @@ -472,4 +470,4 @@ void FUNCTION_NOP(); static inline bool SerialConfigInProgress() { return gSerialConfigCountDown_500ms != 0; } -#endif \ No newline at end of file +#endif