From ecb252b3d92014adb5c052bffb1bc883c3cb7e77 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 14 Jun 2023 22:20:20 +0800 Subject: [PATCH] Adjust stepsize for each bands SW and FM: max is 1000 MW and LW: max is 100 thus more user friendly. --- TEF6686_ESP32.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 40b78df..00b9397 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -854,7 +854,9 @@ void ButtonPress() { if (counter - counterold < 1000) { if (tunemode == 0) { stepsize++; - if (stepsize > 4) stepsize = 0; + if (band == BAND_SW || band == BAND_FM) { if (stepsize > 4) stepsize = 0; } + else { if (stepsize > 3) stepsize = 0; } + if (screenmute == false) ShowStepSize(); EEPROM.writeByte(40, stepsize);