Merge branch 'master' of github.com:rjwats/esp8266-react

This commit is contained in:
Rick Watson 2019-04-27 22:46:06 +01:00
commit e62b239ea1

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;
}
}