Fix recall error of stepsize

When you set stepsize to 4 and then switch to LW Band and turn off radio immediately , when turn on again, then stepsize will remain 4 ,this is not suitable for LW and MW.
This commit is contained in:
kevin
2023-06-15 16:10:39 +08:00
parent 05b1f4a5f0
commit 994f9303a3

View File

@@ -252,8 +252,14 @@ void setup() {
if (iMSset == 0 && EQset == 0) iMSEQ = 1;
switch (band) {
case BAND_LW: frequency_LW = frequency_AM; break;
case BAND_MW: frequency_MW = frequency_AM; break;
case BAND_LW:
frequency_LW = frequency_AM;
if (stepsize > 3) stepsize = 3;
break;
case BAND_MW:
frequency_MW = frequency_AM;
if (stepsize > 3) stepsize = 3;
break;
case BAND_SW: frequency_SW = frequency_AM; break;
default: break;
}