mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-09 16:21:51 +00:00
sensord: Add support of emergency alarm
Currently sensord supports temp alarm and temp max alarm. Add support of emergency alarm to allow alerting when an emergency alarm is signalled. Signed-off-by: Amit Cohen <amcohen@nvidia.com>
This commit is contained in:
1 parent
3106d71baf
commit
7a55c269e6
1 file changed
+3
-1
@@ -221,7 +221,9 @@ static void fillChipTemperature(FeatureDescriptor *temperature,
|
||||
if ((sf = sensors_get_subfeature(name, feature,
|
||||
SENSORS_SUBFEATURE_TEMP_ALARM)) ||
|
||||
(sf = sensors_get_subfeature(name, feature,
|
||||
SENSORS_SUBFEATURE_TEMP_MAX_ALARM))) {
|
||||
SENSORS_SUBFEATURE_TEMP_MAX_ALARM)) ||
|
||||
(sf = sensors_get_subfeature(name, feature,
|
||||
SENSORS_SUBFEATURE_TEMP_EMERGENCY_ALARM))) {
|
||||
temperature->alarmNumber = sf->number;
|
||||
} else {
|
||||
temperature->alarmNumber = -1;
|
||||
|
||||
Reference in new issue
Block a user