From 399f33676735e1f45192baa3d5a6c90f620600b7 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 30 Jul 2023 17:09:03 +0800 Subject: [PATCH] Small optimization for touchrotating --- TEF6686_ESP32.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 9d50f3c..9a6a5e4 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -1816,6 +1816,10 @@ void ModeButtonPress() { if (screensaverset) ScreensaverTimerRestart(); doBandSelectionFM(); doBandSelectionAM(); + if (touchrotating) { + if (poweroptions != LCD_OFF) poweroptions = LCD_OFF; + if (!screensaverset) screensaverset = 1; + } } } while (digitalRead(MODEBUTTON) == LOW) delay(50);