This commit is contained in:
tablatronix
2018-08-23 13:36:08 -05:00
parent 8f03b5df10
commit 3123eac5c8
+2 -2
View File
@@ -328,8 +328,8 @@ bool WiFiManager::startAP(){
// start soft AP with password or anonymous
if (_apPassword != "") {
if(_channelSync) ret = WiFi.softAxP(_apName.c_str(), _apPassword.c_str(),WiFi.channel());
else ret = WiFi.softAxP(_apName.c_str(), _apPassword.c_str());//password option
if(_channelSync) ret = WiFi.softAP(_apName.c_str(), _apPassword.c_str(),WiFi.channel());
else ret = WiFi.softAP(_apName.c_str(), _apPassword.c_str());//password option
} else {
DEBUG_WM(DEBUG_VERBOSE,F("AP has anonymous access!"));
if(_channelSync) ret = WiFi.softAP(_apName.c_str(),"",WiFi.channel());