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 #endif
} }
LimitAMFrequency(); LimitAMFrequency();
if (!externaltune) CheckBandForbiddenAM(); if (!externaltune && tunemode != TUNE_MEM) CheckBandForbiddenAM();
#ifdef HAS_AIR_BAND #ifdef HAS_AIR_BAND
if (band == BAND_AIR) { if (band == BAND_AIR) {
radio.SetFreqAIR(10700); radio.SetFreqAIR(10700);
@@ -2081,7 +2081,7 @@ void SelectBand() {
BWreset = true; BWreset = true;
BWset = BWsetFM; BWset = BWsetFM;
freqold = frequency_AM; freqold = frequency_AM;
if (!externaltune) CheckBandForbiddenFM(); if (!externaltune && tunemode != TUNE_MEM) CheckBandForbiddenFM();
doBW(); doBW();
if (!screenmute) BuildDisplay(); if (!screenmute) BuildDisplay();
} }