Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Nov 19, 2023
1 parent ca0611d commit f65f73a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/cli/Config/ConfigMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ ConfigMgr& ConfigMgr::get_instance()

bool ConfigMgr::init()
{
if (!_control.load()) {
if (_control.load() != LoadReuslt::Success) {
std::cerr << "Failed to load control config" << std::endl;
return false;
}
if (!_device.load()) {
if (_device.load() != LoadReuslt::Success) {
std::cerr << "Failed to load device config" << std::endl;
return false;
}
if (!_tasks.load()) {
if (_tasks.load() != LoadReuslt::Success) {
std::cerr << "Failed to load tasks config" << std::endl;
return false;
}
Expand Down

0 comments on commit f65f73a

Please sign in to comment.