Fixed build in non-NOAA.

This commit is contained in:
Dual Tachyon 2023-09-20 11:06:56 +01:00
parent b0620755f4
commit 3847d3bcbe
2 changed files with 4 additions and 0 deletions

View File

@ -347,12 +347,14 @@ void MENU_AcceptSetting(void)
return;
case MENU_WX:
#if defined(ENABLE_NOAA)
if (IS_NOAA_CHANNEL(gEeprom.ScreenChannel[0])) {
return;
}
if (IS_NOAA_CHANNEL(gEeprom.ScreenChannel[1])) {
return;
}
#endif
gEeprom.CROSS_BAND_RX_TX = gSubMenuSelection;
gFlagReconfigureVfos = true;
gRequestSaveSettings = true;

View File

@ -292,9 +292,11 @@ void SCANNER_Start(void)
BK4819_StopScan();
RADIO_SelectVfos();
#if defined(ENABLE_NOAA)
if (IS_NOAA_CHANNEL(gRxVfo->CHANNEL_SAVE)) {
gRxVfo->CHANNEL_SAVE = FREQ_CHANNEL_FIRST + BAND6_400MHz;
}
#endif
BackupStep = gRxVfo->STEP_SETTING;
BackupFrequency = gRxVfo->StepFrequency;