Resets TxLock to ON for all channels if F Lock DISABLE ALL is selected
This commit is contained in:
@@ -840,6 +840,12 @@ void MENU_AcceptSetting(void)
|
|||||||
gUnlockAllTxConfCnt = 0;
|
gUnlockAllTxConfCnt = 0;
|
||||||
|
|
||||||
gSetting_F_LOCK = gSubMenuSelection;
|
gSetting_F_LOCK = gSubMenuSelection;
|
||||||
|
|
||||||
|
#ifdef ENABLE_FEAT_F4HWN
|
||||||
|
if(gSetting_F_LOCK == F_LOCK_ALL) {
|
||||||
|
SETTINGS_ResetTxLock();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifndef ENABLE_FEAT_F4HWN
|
#ifndef ENABLE_FEAT_F4HWN
|
||||||
|
14
settings.c
14
settings.c
@@ -1026,3 +1026,17 @@ State[1] = 0
|
|||||||
EEPROM_WriteBuffer(0x1F88, State);
|
EEPROM_WriteBuffer(0x1F88, State);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENABLE_FEAT_F4HWN
|
||||||
|
void SETTINGS_ResetTxLock(void)
|
||||||
|
{
|
||||||
|
uint8_t State[8];
|
||||||
|
for(uint8_t channel = 0; channel < 200; channel++)
|
||||||
|
{
|
||||||
|
uint16_t OffsetVFO = channel * 16;
|
||||||
|
EEPROM_ReadBuffer(OffsetVFO + 8, State, sizeof(State));
|
||||||
|
State[4] |= (1 << 6);
|
||||||
|
EEPROM_WriteBuffer(OffsetVFO + 8, State);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@@ -319,4 +319,7 @@ void SETTINGS_WriteBuildOptions(void);
|
|||||||
#ifdef ENABLE_FEAT_F4HWN_VOL
|
#ifdef ENABLE_FEAT_F4HWN_VOL
|
||||||
void SETTINGS_WriteCurrentVol(void);
|
void SETTINGS_WriteCurrentVol(void);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ENABLE_FEAT_F4HWN
|
||||||
|
void SETTINGS_ResetTxLock(void);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user