From 3fa5dfd76f068ac5b69ba60eb6cb26ca25b2383f Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Fri, 18 Jan 2019 09:40:46 +0900 Subject: [PATCH] Fixed missing transfer to the result screen when the connection failure --- src/AutoConnect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoConnect.cpp b/src/AutoConnect.cpp index 89b93a4..294c9f0 100644 --- a/src/AutoConnect.cpp +++ b/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(); }