From c921bd8544471ea5d0d70f45ee8274b7e2a5d4a4 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Thu, 30 Jan 2025 11:25:33 +0100 Subject: [PATCH] Fixed missing BAND switch on SW --- TEF6686_ESP32.ino | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 8c8933c..a3c0181 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -2794,6 +2794,19 @@ void ButtonPress() { delay(200); while (digitalRead(ROTARY_BUTTON) == LOW) delay(50); ShowFreq(0); + } else { + if (band == BAND_SW && tunemode != TUNE_MEM) { + nowToggleSWMIBand = !nowToggleSWMIBand; + tunemode = TUNE_MAN; + EEPROM.writeByte(EE_BYTE_BANDAUTOSW, nowToggleSWMIBand); + EEPROM.commit(); + if (!screenmute) { + tftPrint(0, "AUTO", 22, 60, BackgroundColor, BackgroundColor, 16); + tftPrint(0, "BAND", 22, 60, BackgroundColor, BackgroundColor, 16); + } + doTuneMode(); + ShowTuneMode(); + } } } } @@ -5493,18 +5506,5 @@ void toggleiMSEQ() { EEPROM.writeByte(EE_BYTE_EQSET, EQset); EEPROM.commit(); if (XDRGTKUSB || XDRGTKTCP) DataPrint("G" + String(!EQset) + String(!iMSset) + "\n"); - } else { - if (band == BAND_SW && tunemode != TUNE_MEM) { - nowToggleSWMIBand = !nowToggleSWMIBand; - tunemode = TUNE_MAN; - EEPROM.writeByte(EE_BYTE_BANDAUTOSW, nowToggleSWMIBand); - EEPROM.commit(); - if (!screenmute) { - tftPrint(0, "AUTO", 22, 60, BackgroundColor, BackgroundColor, 16); - tftPrint(0, "BAND", 22, 60, BackgroundColor, BackgroundColor, 16); - } - doTuneMode(); - ShowTuneMode(); - } } }