cpu temp: don't use nct if no TSI0_TEMP

If nct doesn't have TSI0_TEMP then it won't have any cpu temp readings.
In that case we want to make sure we don't use nct module.
This happens on intel platforms and as such we should be using coretemp
instead
pull/1233/head
flightlessmango 4 months ago
parent 62fee600d1
commit fc54f48257

@ -520,8 +520,10 @@ bool CPUStats::GetCpuFile() {
find_input(path, "temp", input, "temp1");
break;
} else if (starts_with(name, "nct")) {
find_input(path, "temp", input, "TSI0_TEMP");
break;
// Only break if nct module has TSI0_TEMP node
if (find_input(path, "temp", input, "TSI0_TEMP"))
break;
} else if (name == "asusec") {
find_input(path, "temp", input, "CPU");
break;

Loading…
Cancel
Save