Merge pull request #15 from pcniatic/fix_wifi_settings

Improving readIP function
This commit is contained in:
rjwats authored and GitHub committed 2019-04-27 07:40:44 +01:00
commit 0f7eefea99
1 file changed
+1 -1
+1 -1
View File
@@ -77,7 +77,7 @@ void WiFiSettingsService::reconfigureWiFiConnection() {
}
void WiFiSettingsService::readIP(JsonObject& root, String key, IPAddress& _ip){
if ( root[key].isNull() || !_ip.fromString(root[key].as<String>())){
if ( !root[key].is<String>() || !_ip.fromString(root[key].as<String>())){
_ip = INADDR_NONE;
}
}