diff --git a/source/cli/Config/ConfigMgr.cpp b/source/cli/Config/ConfigMgr.cpp index ccdd58e..588e8b9 100644 --- a/source/cli/Config/ConfigMgr.cpp +++ b/source/cli/Config/ConfigMgr.cpp @@ -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; }