Improve new action for RescueOps
This commit is contained in:
22
radio.c
22
radio.c
@@ -159,14 +159,6 @@ 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_RESCUE_OPS
|
||||
if(configure == VFO_CONFIGURE_RELOAD)
|
||||
{
|
||||
gResetPower = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
VFO_Info_t *pVfo = &gEeprom.VfoInfo[VFO];
|
||||
|
||||
if (!gSetting_350EN) {
|
||||
@@ -436,6 +428,20 @@ void RADIO_ConfigureChannel(const unsigned int VFO, const unsigned int configure
|
||||
pVfo->Compander = att.compander;
|
||||
|
||||
RADIO_ConfigureSquelchAndOutputPower(pVfo);
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN_RESCUE_OPS
|
||||
if(gRemoveShift)
|
||||
{
|
||||
pVfo->pTX = &pVfo->freq_config_RX;
|
||||
gRequestSaveChannel = 1;
|
||||
}
|
||||
|
||||
if(gPowerHigh)
|
||||
{
|
||||
pVfo->OUTPUT_POWER = OUTPUT_POWER_HIGH;
|
||||
gRequestSaveChannel = 1;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void RADIO_ConfigureSquelchAndOutputPower(VFO_Info_t *pInfo)
|
||||
|
Reference in New Issue
Block a user