fix stepsize error when bands switch

bands switch FM -> LW, stepsize should not > 3
This commit is contained in:
kevin
2023-06-15 09:55:35 +08:00
parent 2c8242ec78
commit 686eb92879

View File

@@ -591,7 +591,10 @@ void PWRButtonPress() {
ESP.restart();
} else {
if (tunemode != 2) {
if (band == BAND_FM) band = BAND_LW;
if (band == BAND_FM) {
band = BAND_LW;
if (stepsize > 3) stepsize = 3;
}
else if (band == BAND_LW) band = BAND_MW;
else if (band == BAND_MW) band = BAND_SW;
else if (band == BAND_SW) band = BAND_FM;