Merge pull request #12 from pcniatic/master

Corrected issues while enabling static IP on web.
This commit is contained in:
rjwats 2019-04-22 16:48:07 +01:00 committed by GitHub
commit 64b16986ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ void WiFiSettingsService::reconfigureWiFiConnection() {
} }
void WiFiSettingsService::readIP(JsonObject& root, String key, IPAddress& _ip){ void WiFiSettingsService::readIP(JsonObject& root, String key, IPAddress& _ip){
if (!root[key] || !_ip.fromString(root[key].as<String>())){ if ( root[key].isNull() || !_ip.fromString(root[key].as<String>())){
_ip = INADDR_NONE; _ip = INADDR_NONE;
} }
} }