Fix: screensaver open failed by touch rotating
This commit is contained in:
+2
-2
@@ -1831,14 +1831,14 @@ void ModeButtonPress() {
|
|||||||
Serial.end();
|
Serial.end();
|
||||||
if (wifi) remoteip = IPAddress (WiFi.localIP()[0], WiFi.localIP()[1], WiFi.localIP()[2], subnetclient);
|
if (wifi) remoteip = IPAddress (WiFi.localIP()[0], WiFi.localIP()[1], WiFi.localIP()[2], subnetclient);
|
||||||
if (USBmode) Serial.begin(19200); else Serial.begin(115200);
|
if (USBmode) Serial.begin(19200); else Serial.begin(115200);
|
||||||
ScreensaverTimerSet(screensaverOptions[screensaverset]);
|
|
||||||
if (screensaverset) ScreensaverTimerRestart();
|
|
||||||
doBandSelectionFM();
|
doBandSelectionFM();
|
||||||
doBandSelectionAM();
|
doBandSelectionAM();
|
||||||
if (touchrotating) {
|
if (touchrotating) {
|
||||||
if (poweroptions != LCD_OFF) poweroptions = LCD_OFF;
|
if (poweroptions != LCD_OFF) poweroptions = LCD_OFF;
|
||||||
if (!screensaverset) screensaverset = 1;
|
if (!screensaverset) screensaverset = 1;
|
||||||
}
|
}
|
||||||
|
ScreensaverTimerSet(screensaverOptions[screensaverset]);
|
||||||
|
if (screensaverset) ScreensaverTimerRestart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (digitalRead(MODEBUTTON) == LOW) delay(50);
|
while (digitalRead(MODEBUTTON) == LOW) delay(50);
|
||||||
|
|||||||
Reference in New Issue
Block a user