mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-14 15:11:32 +10:00
fixes #1297
This commit is contained in:
+9
-5
@@ -332,11 +332,6 @@ boolean WiFiManager::autoConnect(char const *apName, char const *apPassword) {
|
||||
return true; // connected success
|
||||
}
|
||||
|
||||
// possibly skip the config portal
|
||||
if (!_enableConfigPortal) {
|
||||
return false; // not connected and not cp
|
||||
}
|
||||
|
||||
#ifdef WM_DEBUG_LEVEL
|
||||
DEBUG_WM(F("AutoConnect: FAILED"));
|
||||
#endif
|
||||
@@ -347,6 +342,15 @@ boolean WiFiManager::autoConnect(char const *apName, char const *apPassword) {
|
||||
#endif
|
||||
}
|
||||
|
||||
// possibly skip the config portal
|
||||
if (!_enableConfigPortal) {
|
||||
#ifdef WM_DEBUG_LEVEL
|
||||
DEBUG_WM(DEBUG_VERBOSE,F("enableConfigPortal: FALSE, skipping "));
|
||||
#endif
|
||||
|
||||
return false; // not connected and not cp
|
||||
}
|
||||
|
||||
// not connected start configportal
|
||||
bool res = startConfigPortal(apName, apPassword);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user