Skip to content

Commit

Permalink
Fix static_cast error
Browse files Browse the repository at this point in the history
  • Loading branch information
silverchris committed Aug 7, 2022
1 parent f0d2708 commit bd9dec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autoapp/Configuration/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Configuration::Configuration() {
enableTouchscreen_ = config["enableTouchscreen"].as_boolean();
}
if (config.contains("wifiPort")) {
wifiPort_ = static_cast<uint32_t>(static_cast<long long>(*config["wifiPort"].as_integer()));
wifiPort_ = static_cast<uint32_t>(config["wifiPort"].as_integer()->value_or(30515));
}
if (config.contains("logLevel")) {
std::optional<std::string> level = config["logLevel"].value<std::string>();
Expand Down

0 comments on commit bd9dec4

Please sign in to comment.