mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 22:05:11 +00:00
Fix sensors output when a temperature channel has a critical limit but
no max limit (for example the coretemp driver.) git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4791 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -198,6 +198,22 @@ static void print_chip_temp(const sensors_chip_name *name,
|
||||
s2 = NULL;
|
||||
}
|
||||
}
|
||||
} else if (TEMP_FEATURE(SENSORS_FEATURE_TEMP_CRIT)) {
|
||||
limit1 = TEMP_FEATURE_VAL(SENSORS_FEATURE_TEMP_CRIT);
|
||||
s1 = "crit";
|
||||
|
||||
if (TEMP_FEATURE(SENSORS_FEATURE_TEMP_CRIT_HYST)) {
|
||||
limit2 = TEMP_FEATURE_VAL(SENSORS_FEATURE_TEMP_CRIT_HYST);
|
||||
s2 = "hyst";
|
||||
} else {
|
||||
limit2 = 0;
|
||||
s2 = NULL;
|
||||
}
|
||||
|
||||
if (TEMP_FEATURE(SENSORS_FEATURE_TEMP_CRIT_ALARM) &&
|
||||
TEMP_FEATURE_VAL(SENSORS_FEATURE_TEMP_CRIT_ALARM))
|
||||
alarm |= 1;
|
||||
crit_displayed = 1;
|
||||
} else {
|
||||
limit1 = limit2 = 0;
|
||||
s1 = s2 = NULL;
|
||||
|
Reference in New Issue
Block a user