mirror of
https://github.com/kamilsss655/uv-k5-firmware-custom
synced 2024-11-21 17:57:59 +00:00
Menu timeout to 30 seconds
This commit is contained in:
parent
0eac645cec
commit
f975796191
@ -1589,7 +1589,7 @@ static void APP_ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
||||
else
|
||||
{
|
||||
if (Key != KEY_PTT)
|
||||
gVoltageMenuCountdown = 2 * 30; // 30 sec
|
||||
gVoltageMenuCountdown = g_menu_timeout;
|
||||
|
||||
BACKLIGHT_TurnOn();
|
||||
|
||||
|
@ -1322,5 +1322,5 @@ void MENU_ProcessKeys(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
||||
}
|
||||
|
||||
if (gScreenToDisplay == DISPLAY_MENU && gMenuCursor == MENU_VOL)
|
||||
gVoltageMenuCountdown = 2 * 30; // 30 sec
|
||||
gVoltageMenuCountdown = g_menu_timeout;
|
||||
}
|
||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
2
misc.c
2
misc.c
@ -20,6 +20,8 @@
|
||||
|
||||
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 gMin_bat_v = 660; // 6.6V
|
||||
|
||||
|
6
misc.h
6
misc.h
@ -77,9 +77,13 @@ typedef enum CssScanMode_t CssScanMode_t;
|
||||
|
||||
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 gMin_bat_v;
|
||||
|
||||
extern const uint8_t gMicGain_dB2[5];
|
||||
|
||||
extern const uint32_t *gUpperLimitFrequencyBandTable;
|
||||
extern const uint32_t *gLowerLimitFrequencyBandTable;
|
||||
|
||||
@ -92,8 +96,6 @@ extern uint8_t gSetting_F_LOCK;
|
||||
extern bool gSetting_ScrambleEnable;
|
||||
extern uint8_t gSetting_F_LOCK;
|
||||
|
||||
extern const uint8_t gMicGain_dB2[5];
|
||||
|
||||
extern const uint32_t gDefaultAesKey[4];
|
||||
extern uint32_t gCustomAesKey[4];
|
||||
extern bool bHasCustomAesKey;
|
||||
|
Loading…
Reference in New Issue
Block a user