0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

Menu timeout to 30 seconds

This commit is contained in:
OneOfEleven 2023-09-11 12:06:24 +01:00
parent 6a1b7d8673
commit 0eac645cec
4 changed files with 3 additions and 2 deletions

View File

@ -1276,6 +1276,7 @@ void APP_TimeSlice10ms(void)
APP_CheckKeys(); APP_CheckKeys();
} }
// this is called once every 500ms
void APP_TimeSlice500ms(void) void APP_TimeSlice500ms(void)
{ {
// Skipped authentic device check // Skipped authentic device check
@ -1339,7 +1340,7 @@ void APP_TimeSlice500ms(void)
if (gScreenToDisplay != DISPLAY_SCANNER || gScanCssState >= SCAN_CSS_STATE_FOUND) if (gScreenToDisplay != DISPLAY_SCANNER || gScanCssState >= SCAN_CSS_STATE_FOUND)
#endif #endif
{ {
if (gEeprom.AUTO_KEYPAD_LOCK && gKeyLockCountdown && !gDTMF_InputMode) if (gEeprom.AUTO_KEYPAD_LOCK && gKeyLockCountdown > 0 && !gDTMF_InputMode)
{ {
if (--gKeyLockCountdown == 0) if (--gKeyLockCountdown == 0)
gEeprom.KEY_LOCK = true; gEeprom.KEY_LOCK = true;
@ -1588,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 = 16; gVoltageMenuCountdown = 2 * 30; // 30 sec
BACKLIGHT_TurnOn(); BACKLIGHT_TurnOn();

BIN
firmware

Binary file not shown.

Binary file not shown.

Binary file not shown.