diff --git a/engine/services/hardware_service.cc b/engine/services/hardware_service.cc index 97ddacb97..ca1ea4cc6 100644 --- a/engine/services/hardware_service.cc +++ b/engine/services/hardware_service.cc @@ -357,11 +357,11 @@ bool HardwareService::IsValidConfig( auto res = hw_db.LoadHardwareList(); if (res.has_value()) { for (auto const& e : res.value()) { - if (!is_valid(e.software_id)) { - return false; + if (is_valid(e.software_id)) { + return true; } } } - return true; + return false; } } // namespace services