Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 73e0e7a

Browse files
committed
set flag
1 parent 3ae6cb6 commit 73e0e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_cpp/ESPAsync_WiFiManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ void ESPAsync_WiFiManager::startConfigPortalModeless(char const *apName, char co
633633
LOGDEBUG("SET AP STA");
634634

635635
// try to connect
636-
if (connectWifi("", "") == WL_CONNECTED)
636+
if (shouldConnectWiFi && connectWifi("", "") == WL_CONNECTED)
637637
{
638638
LOGDEBUG1(F("IP Address:"), WiFi.localIP());
639639

0 commit comments

Comments
 (0)