mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-19 09:21:30 +10:00
skip connect if wifi empty
This commit is contained in:
+5
-5
@@ -574,11 +574,11 @@ uint8_t WiFiManager::processConfigPortal(){
|
||||
DEBUG_WM(DEBUG_VERBOSE,F("process connect"));
|
||||
if(_enableCaptivePortal) delay(_cpclosedelay); // keeps the captiveportal from closing to fast.
|
||||
|
||||
// @todo skip wifi if no ssid
|
||||
// if(_ssid == ""){
|
||||
// DEBUG_WM(DEBUG_VERBOSE,F("No ssid, skipping wifi"));
|
||||
// }
|
||||
// else{
|
||||
// skip wifi if no ssid
|
||||
if(_ssid == ""){
|
||||
DEBUG_WM(DEBUG_VERBOSE,F("No ssid, skipping wifi"));
|
||||
}
|
||||
else{
|
||||
// attempt sta connection to submitted _ssid, _pass
|
||||
if (connectWifi(_ssid, _pass) == WL_CONNECTED) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user