Skip to content

Commit

Permalink
fixed wrong WiFi DNS parsing of commit 2093ce8 (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleini authored and David Gräff committed Dec 15, 2019
1 parent 2093ce8 commit 7b15526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Homie/Utils/Validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ ConfigValidationResult Validation::_validateConfigWifi(const JsonObject object)
JsonVariant wifiDns2 = wifi["dns2"];

if (!wifiDns1.isNull()) {
if (wifiDns1.as<const char*>()) {
if (!wifiDns1.as<const char*>()) {
result.reason = F("wifi.dns1 is not a string");
return result;
}
Expand All @@ -204,7 +204,7 @@ ConfigValidationResult Validation::_validateConfigWifi(const JsonObject object)
}
}
if (!wifiDns2.isNull()) {
if (wifiDns2.as<const char*>()) {
if (!wifiDns2.as<const char*>()) {
result.reason = F("wifi.dns2 is not a string");
return result;
}
Expand Down

0 comments on commit 7b15526

Please sign in to comment.