Clear cpu temp hwmon path if no supported sensor is found

sdf
jackun 4 years ago
parent 9445ab4acc
commit 6ee225ed66
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -301,10 +301,12 @@ bool CPUStats::GetCpuFile() {
} else if (name == "atk0110") {
find_temp_input(path, input, "CPU Temperature");
break;
} else {
path.clear();
}
}
if (!file_exists(input) && !find_fallback_temp_input(path, input)) {
if (path.empty() || (!file_exists(input) && !find_fallback_temp_input(path, input))) {
std::cerr << "MANGOHUD: Could not find cpu temp sensor location" << std::endl;
return false;
} else {

Loading…
Cancel
Save