Add Power High action for RescueOps mode
This commit is contained in:
16
radio.c
16
radio.c
@@ -159,6 +159,14 @@ void RADIO_InitInfo(VFO_Info_t *pInfo, const uint8_t ChannelSave, const uint32_t
|
||||
|
||||
void RADIO_ConfigureChannel(const unsigned int VFO, const unsigned int configure)
|
||||
{
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN_MENU_LOCK
|
||||
if(configure == VFO_CONFIGURE_RELOAD)
|
||||
{
|
||||
gResetPower = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
VFO_Info_t *pVfo = &gEeprom.VfoInfo[VFO];
|
||||
|
||||
if (!gSetting_350EN) {
|
||||
@@ -428,6 +436,14 @@ void RADIO_ConfigureChannel(const unsigned int VFO, const unsigned int configure
|
||||
pVfo->Compander = att.compander;
|
||||
|
||||
RADIO_ConfigureSquelchAndOutputPower(pVfo);
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN_MENU_LOCK
|
||||
if(gEeprom.MENU_LOCK && gResetPower) // RO is active
|
||||
{
|
||||
gInitialPower = pVfo->OUTPUT_POWER;
|
||||
gResetPower = false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void RADIO_ConfigureSquelchAndOutputPower(VFO_Info_t *pInfo)
|
||||
|
Reference in New Issue
Block a user