1
0
mirror of https://github.com/revspace/operame synced 2024-12-04 21:57:30 +00:00

Exit portal with portal button

This commit is contained in:
Juerd Waalboer 2020-12-22 01:56:52 +01:00
parent 468961e94c
commit f4d1271109

View File

@ -205,6 +205,10 @@ void setup() {
}; };
WiFiSettings.onPortalWaitLoop = []() { WiFiSettings.onPortalWaitLoop = []() {
if (ota_enabled) ArduinoOTA.handle(); if (ota_enabled) ArduinoOTA.handle();
if (!digitalRead(portalbutton)) {
delay(50);
if (!digitalRead(portalbutton)) ESP.restart();
}
}; };
if (wifi_enabled) WiFiSettings.connect(false, 15); if (wifi_enabled) WiFiSettings.connect(false, 15);