mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-13 14:51:21 +10:00
Merge pull request #5 from mrbig/development
uninitialized abort caused immediate exit
This commit is contained in:
+2
-1
@@ -243,6 +243,7 @@ boolean WiFiManager::startConfigPortal(char const *apName, char const *apPasswo
|
||||
setupConfigPortal();
|
||||
uint8_t state;
|
||||
bool result = false;
|
||||
abort = false;
|
||||
|
||||
if(!_configPortalIsBlocking){
|
||||
DEBUG_WM(F("Config Portal Running, non blocking/processing"));
|
||||
@@ -268,7 +269,7 @@ boolean WiFiManager::startConfigPortal(char const *apName, char const *apPasswo
|
||||
}
|
||||
|
||||
if(state != WL_IDLE_STATUS){
|
||||
result == WL_CONNECTED;
|
||||
result = state == WL_CONNECTED;
|
||||
break;
|
||||
}
|
||||
yield();
|
||||
|
||||
Reference in New Issue
Block a user