Merge pull request #12 from pcniatic/master
Corrected issues while enabling static IP on web.
This commit is contained in:
commit
64b16986ae
@ -77,7 +77,7 @@ void WiFiSettingsService::reconfigureWiFiConnection() {
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user