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

Commit 56cb3d6

Browse files
committed
fix: using random CH for non-password use too
1 parent fbe03eb commit 56cb3d6

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/ESPAsync_WiFiManager-Impl.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -412,18 +412,9 @@ void ESPAsync_WiFiManager::setupConfigPortal()
412412
else
413413
channel = _WiFiAPChannel;
414414

415-
if (_apPassword != NULL)
416-
{
417-
LOGWARN1(F("AP Channel ="), channel);
415+
LOGWARN1(F("AP Channel ="), channel);
418416

419-
//WiFi.softAP(_apName, _apPassword);//password option
420-
WiFi.softAP(_apName, _apPassword, channel);
421-
}
422-
else
423-
{
424-
// Can't use channel here
425-
WiFi.softAP(_apName);
426-
}
417+
WiFi.softAP(_apName, _apPassword, channel);
427418

428419
delay(500); // Without delay I've seen the IP address blank
429420

0 commit comments

Comments
 (0)