Fix problem when in memory mode a disabled band was called.

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-05-23 21:20:36 +02:00
parent 30e407b3ae
commit 3b1eed6e07
+2 -2
View File
@@ -2035,7 +2035,7 @@ void SelectBand() {
#endif
}
LimitAMFrequency();
if (!externaltune) CheckBandForbiddenAM();
if (!externaltune && tunemode != TUNE_MEM) CheckBandForbiddenAM();
#ifdef HAS_AIR_BAND
if (band == BAND_AIR) {
radio.SetFreqAIR(10700);
@@ -2081,7 +2081,7 @@ void SelectBand() {
BWreset = true;
BWset = BWsetFM;
freqold = frequency_AM;
if (!externaltune) CheckBandForbiddenFM();
if (!externaltune && tunemode != TUNE_MEM) CheckBandForbiddenFM();
doBW();
if (!screenmute) BuildDisplay();
}