Fixed missing transfer to the result screen when the connection failure

pull/41/head
Hieromon Ikasamo 6 years ago
parent d500b7f2e3
commit 3fa5dfd76f
  1. 2
      src/AutoConnect.cpp

@ -455,7 +455,7 @@ void AutoConnect::handleRequest() {
_redirectURI = String(AUTOCONNECT_URI_FAIL);
_rsConnect = WiFi.status();
_disconnectWiFi(false);
while (WiFi.status() != WL_IDLE_STATUS) {
while (WiFi.status() != WL_IDLE_STATUS && WiFi.status() != WL_DISCONNECTED) {
delay(10);
yield();
}

Loading…
Cancel
Save