Also show static IP fields when static IP is passed

Regardless of the boolean, we should always show static IP fields if
actual static IP value is passed. This ensures backwards compatibility
This commit is contained in:
Alex Goris
2017-05-04 22:04:05 +02:00
parent 486ea7db2c
commit 136c0c9cba
+1 -1
View File
@@ -500,7 +500,7 @@ void WiFiManager::handleWifi(boolean scan) {
page += "<br/>";
}
if (_sta_show_static_fields) {
if (_sta_show_static_fields || _sta_static_ip) {
String item = FPSTR(HTTP_FORM_PARAM);
item.replace("{i}", "ip");