Browse Source
Merge pull request #12 from pcniatic/master
Corrected issues while enabling static IP on web.
master
rjwats
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/WiFiSettingsService.cpp
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|