Merge pull request #15 from pcniatic/fix_wifi_settings
Improving readIP function
This commit is contained in:
commit
0f7eefea99
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user