Menu timeout to 30 seconds

This commit is contained in:
OneOfEleven 2023-09-11 12:09:05 +01:00
parent 0eac645cec
commit f975796191
7 changed files with 8 additions and 4 deletions

View File

@ -1589,7 +1589,7 @@ static void APP_ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
else else
{ {
if (Key != KEY_PTT) if (Key != KEY_PTT)
gVoltageMenuCountdown = 2 * 30; // 30 sec gVoltageMenuCountdown = g_menu_timeout;
BACKLIGHT_TurnOn(); BACKLIGHT_TurnOn();

View File

@ -1322,5 +1322,5 @@ void MENU_ProcessKeys(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
} }
if (gScreenToDisplay == DISPLAY_MENU && gMenuCursor == MENU_VOL) if (gScreenToDisplay == DISPLAY_MENU && gMenuCursor == MENU_VOL)
gVoltageMenuCountdown = 2 * 30; // 30 sec gVoltageMenuCountdown = g_menu_timeout;
} }

BIN
firmware

Binary file not shown.

Binary file not shown.

Binary file not shown.

2
misc.c
View File

@ -20,6 +20,8 @@
const uint8_t g_scan_delay = 21; // 21 const uint8_t g_scan_delay = 21; // 21
const uint8_t g_menu_timeout = 2 * 30; // 30 seconds
const uint16_t gMax_bat_v = 840; // 8.4V const uint16_t gMax_bat_v = 840; // 8.4V
const uint16_t gMin_bat_v = 660; // 6.6V const uint16_t gMin_bat_v = 660; // 6.6V

6
misc.h
View File

@ -77,9 +77,13 @@ typedef enum CssScanMode_t CssScanMode_t;
extern const uint8_t g_scan_delay; extern const uint8_t g_scan_delay;
extern const uint8_t g_menu_timeout;
extern const uint16_t gMax_bat_v; extern const uint16_t gMax_bat_v;
extern const uint16_t gMin_bat_v; extern const uint16_t gMin_bat_v;
extern const uint8_t gMicGain_dB2[5];
extern const uint32_t *gUpperLimitFrequencyBandTable; extern const uint32_t *gUpperLimitFrequencyBandTable;
extern const uint32_t *gLowerLimitFrequencyBandTable; extern const uint32_t *gLowerLimitFrequencyBandTable;
@ -92,8 +96,6 @@ extern uint8_t gSetting_F_LOCK;
extern bool gSetting_ScrambleEnable; extern bool gSetting_ScrambleEnable;
extern uint8_t gSetting_F_LOCK; extern uint8_t gSetting_F_LOCK;
extern const uint8_t gMicGain_dB2[5];
extern const uint32_t gDefaultAesKey[4]; extern const uint32_t gDefaultAesKey[4];
extern uint32_t gCustomAesKey[4]; extern uint32_t gCustomAesKey[4];
extern bool bHasCustomAesKey; extern bool bHasCustomAesKey;