From 686eb92879192e2b55a61466654b93b71e65a324 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 15 Jun 2023 09:55:35 +0800 Subject: [PATCH] fix stepsize error when bands switch bands switch FM -> LW, stepsize should not > 3 --- TEF6686_ESP32.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index f1f8a13..78e25ab 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -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;