READ MANUAL prompt for unlocking TX

This commit is contained in:
Krzysiek Egzmont
2023-11-09 10:33:28 +01:00
parent d7b6cdf444
commit a43a3f949f
3 changed files with 11 additions and 5 deletions

View File

@@ -47,6 +47,8 @@
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
#endif
uint8_t gUnlockAllTxConfCnt;
#ifdef ENABLE_F_CAL_MENU
void writeXtalFreqCal(const int32_t value, const bool update_eeprom)
{
@@ -759,14 +761,13 @@ void MENU_AcceptSetting(void)
break;
case MENU_F_LOCK: {
static uint8_t cnt;
if(gSubMenuSelection == F_LOCK_NONE) { // select 10 times to enable
cnt++;
if(cnt < 10)
gUnlockAllTxConfCnt++;
if(gUnlockAllTxConfCnt < 10)
return;
}
else
cnt = 0;
gUnlockAllTxConfCnt = 0;
gSetting_F_LOCK = gSubMenuSelection;
break;