Improve KeyLck (0 to 10min)

This commit is contained in:
Armel FAUVEAU
2024-10-09 01:29:13 +02:00
parent 5478cc05ac
commit 31c17fa2ac
5 changed files with 12 additions and 6 deletions

View File

@@ -235,7 +235,6 @@ int MENU_GetLimits(uint8_t menu_id, int32_t *pMin, int32_t *pMax)
#endif
case MENU_BCL:
case MENU_BEEP:
case MENU_AUTOLK:
case MENU_S_ADD1:
case MENU_S_ADD2:
case MENU_S_ADD3:
@@ -275,6 +274,10 @@ int MENU_GetLimits(uint8_t menu_id, int32_t *pMin, int32_t *pMax)
break;
#endif
case MENU_AUTOLK:
*pMax = 40;
break;
case MENU_TOT:
//*pMin = 0;
*pMin = 5;
@@ -634,7 +637,7 @@ void MENU_AcceptSetting(void)
case MENU_AUTOLK:
gEeprom.AUTO_KEYPAD_LOCK = gSubMenuSelection;
gKeyLockCountdown = 30;
gKeyLockCountdown = gEeprom.AUTO_KEYPAD_LOCK * 30; // 15 seconds step
break;
case MENU_S_ADD1: