diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 65eb3c02..d3c367b2 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -1809,7 +1809,7 @@ void WiFiManager::handleWifiSave() { _ssid = server->arg(F("s")).c_str(); _pass = server->arg(F("p")).c_str(); - if(_ssid = "" && _pass != ""){ + if(_ssid == "" && _pass != ""){ _ssid = WiFi_SSID(true); // password change, placeholder ssid, @todo compare pass to old?, confirm ssid is clean #ifdef WM_DEBUG_LEVEL DEBUG_WM(WM_DEBUG_VERBOSE,F("Detected WiFi password change"));