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

Commit de0515b

Browse files
committed
added flag to impl
1 parent 52f3c56 commit de0515b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ESPAsync_WiFiManager-Impl.h

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

src_h/ESPAsync_WiFiManager-Impl.h

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)