mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-16 07:51:36 +10:00
fixed check for gateway and subnet
This commit is contained in:
+2
-2
@@ -461,12 +461,12 @@ void WiFiManager::handleWifiSave() {
|
||||
DEBUG_WM(server->arg("ip"));
|
||||
_sta_static_ip.fromString(server->arg("ip"));
|
||||
}
|
||||
if(server->arg("gw")) {
|
||||
if(server->arg("gw") != "") {
|
||||
DEBUG_WM(F("static gateway"));
|
||||
DEBUG_WM(server->arg("gw"));
|
||||
_sta_static_gw.fromString(server->arg("gw"));
|
||||
}
|
||||
if(server->arg("sn")) {
|
||||
if(server->arg("sn") != "") {
|
||||
DEBUG_WM(F("static netmask"));
|
||||
DEBUG_WM(server->arg("sn"));
|
||||
_sta_static_sn.fromString(server->arg("sn"));
|
||||
|
||||
Reference in New Issue
Block a user