Corrected issues while enabling static IP on web.
For some reason root[key] is false and it always sets INADDR_NONE to _ip.
This commit is contained in:
parent
22605bf1af
commit
5b0c3e29a1
@ -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