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

Commit

Permalink
added flag to impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrin Weiler committed Feb 4, 2021
1 parent 52f3c56 commit de0515b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ESPAsync_WiFiManager-Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ void ESPAsync_WiFiManager::startConfigPortalModeless(char const *apName, char co
LOGDEBUG("SET AP STA");

// try to connect
if (connectWifi("", "") == WL_CONNECTED)
if (shouldConnectWiFi && connectWifi("", "") == WL_CONNECTED)
{
LOGDEBUG1(F("IP Address:"), WiFi.localIP());

Expand Down
2 changes: 1 addition & 1 deletion src_h/ESPAsync_WiFiManager-Impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ void ESPAsync_WiFiManager::startConfigPortalModeless(char const *apName, char co
LOGDEBUG("SET AP STA");

// try to connect
if (connectWifi("", "") == WL_CONNECTED)
if (shouldConnectWiFi && connectWifi("", "") == WL_CONNECTED)
{
LOGDEBUG1(F("IP Address:"), WiFi.localIP());

Expand Down

0 comments on commit de0515b

Please sign in to comment.