Skip to content

Commit

Permalink
fix: validate GPU (#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
vansangpfiev authored Dec 17, 2024
1 parent 0255f3d commit 52acbfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/services/hardware_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 52acbfa

Please sign in to comment.