FIX #28: After entering item 51(BATVOL) of the menu, the automatic lock screen cannot be unlocked

This commit is contained in:
Krzysiek Egzmont 2023-10-12 20:45:26 +02:00
parent 7e6a78ab6c
commit be00bb99ad

View File

@ -1823,7 +1823,7 @@ void APP_TimeSlice500ms(void)
if (gScanStateDir == SCAN_OFF && (gScreenToDisplay != DISPLAY_SCANNER || gScanCssState >= SCAN_CSS_STATE_FOUND))
#endif
{
if (gEeprom.AUTO_KEYPAD_LOCK && gKeyLockCountdown > 0 && !gDTMF_InputMode)
if (gEeprom.AUTO_KEYPAD_LOCK && gKeyLockCountdown > 0 && !gDTMF_InputMode && gScreenToDisplay != DISPLAY_MENU)
{
if (--gKeyLockCountdown == 0)
gEeprom.KEY_LOCK = true; // lock the keyboard