mirror of
https://github.com/revspace/operame
synced 2024-12-04 13:47:29 +00:00
Exit portal with portal button
This commit is contained in:
parent
468961e94c
commit
f4d1271109
@ -205,6 +205,10 @@ void setup() {
|
||||
};
|
||||
WiFiSettings.onPortalWaitLoop = []() {
|
||||
if (ota_enabled) ArduinoOTA.handle();
|
||||
if (!digitalRead(portalbutton)) {
|
||||
delay(50);
|
||||
if (!digitalRead(portalbutton)) ESP.restart();
|
||||
}
|
||||
};
|
||||
|
||||
if (wifi_enabled) WiFiSettings.connect(false, 15);
|
||||
|
Loading…
Reference in New Issue
Block a user