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:
root authored and Amit Cohen committed 2020-09-29 17:41:06 +03:00
1 parent 3106d71baf
commit 7a55c269e6
1 file changed
+3 -1
+3 -1
View File
@@ -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;