mirror of
https://github.com/revspace/operame
synced 2025-12-13 16:06:30 +00:00
Exit portal with portal button
This commit is contained in:
parent
468961e94c
commit
f4d1271109
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue