From 136c0c9cba70117237e822d7669e1244b401fc3f Mon Sep 17 00:00:00 2001 From: Alex Goris Date: Thu, 4 May 2017 22:04:05 +0200 Subject: [PATCH] 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 --- WiFiManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 8ac235c..343be0f 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -500,7 +500,7 @@ void WiFiManager::handleWifi(boolean scan) { page += "
"; } - if (_sta_show_static_fields) { + if (_sta_show_static_fields || _sta_static_ip) { String item = FPSTR(HTTP_FORM_PARAM); item.replace("{i}", "ip");