Add Power High action for RescueOps mode

This commit is contained in:
Armel FAUVEAU
2024-11-21 02:16:44 +01:00
parent 26e886cbf5
commit ca09b2f7ba
7 changed files with 54 additions and 0 deletions

16
radio.c
View File

@@ -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)