From 0eac645cecf3f2d9e7a7b759bf7830962edc1aa0 Mon Sep 17 00:00:00 2001 From: OneOfEleven Date: Mon, 11 Sep 2023 12:06:24 +0100 Subject: [PATCH] Menu timeout to 30 seconds --- app/app.c | 5 +++-- firmware | Bin 172860 -> 172860 bytes firmware.bin | Bin 56904 -> 56904 bytes firmware.packed.bin | Bin 56922 -> 56922 bytes 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/app.c b/app/app.c index e5cc76b..f522701 100644 --- a/app/app.c +++ b/app/app.c @@ -1276,6 +1276,7 @@ void APP_TimeSlice10ms(void) APP_CheckKeys(); } +// this is called once every 500ms void APP_TimeSlice500ms(void) { // Skipped authentic device check @@ -1339,7 +1340,7 @@ void APP_TimeSlice500ms(void) if (gScreenToDisplay != DISPLAY_SCANNER || gScanCssState >= SCAN_CSS_STATE_FOUND) #endif { - if (gEeprom.AUTO_KEYPAD_LOCK && gKeyLockCountdown && !gDTMF_InputMode) + if (gEeprom.AUTO_KEYPAD_LOCK && gKeyLockCountdown > 0 && !gDTMF_InputMode) { if (--gKeyLockCountdown == 0) gEeprom.KEY_LOCK = true; @@ -1588,7 +1589,7 @@ static void APP_ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld) else { if (Key != KEY_PTT) - gVoltageMenuCountdown = 16; + gVoltageMenuCountdown = 2 * 30; // 30 sec BACKLIGHT_TurnOn(); diff --git a/firmware b/firmware index 0f7ebba244f955c3ab313d4c356955a936018c9e..c524c12761dc95f9e2f96ab0904b57b7ebffaf79 100644 GIT binary patch delta 23 fcmdmUjBC#^u7)j)XB-)A+Rr*NZa?eDl%EIye(4Ft delta 23 fcmdmUjBC#^u7)j)XB-&?+Rr*NZa?eDl%EIyeFX`b diff --git a/firmware.bin b/firmware.bin index 727ff156e9bc558946b5b7d7ea8fe840e85c5cc1..a84ace6d40aae3a3d6c463029fd5fbc3452a9609 100644 GIT binary patch delta 16 YcmX@Hhxx=F<_%{Y8ErP7b*!EP07YU4;Q#;t delta 16 YcmX@Hhxx=F<_%{Y83i_