fix logic error when adding voltage-frequency nodes

This commit is contained in:
Jussi Kuokkanen 2023-11-03 15:12:31 +02:00
parent 8bfaf3e0d5
commit e4e3fa95bb

View File

@ -467,8 +467,8 @@ std::vector<TreeNode<DeviceNode>> getVoltFreqVolt(AMDGPUData data) {
std::vector<TreeNode<DeviceNode>> getVoltFreqNodes(AMDGPUData data) {
// Root item for voltage and frequency of a point
std::vector<TreeNode<DeviceNode>> retval;
if (!data.ppTableType.has_value() || *data.ppTableType != Navi ||
*data.ppTableType != SMU13)
if (!data.ppTableType.has_value() &&
(*data.ppTableType != Navi && *data.ppTableType != SMU13))
return {};
auto path = data.hwmonPath + "/pp_od_clk_voltage";