mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
Patch from Philip Pokorny
This patch fixes a race condition in the lm85 driver and adds support for the SMC EMC6D100 and EMC6D101. The EMC6D100 and 101 chips have some additional features that *are not* currently implemented in the driver, but the chip is detected (by sensors-detect and the lm85 driver). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1740 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -1488,11 +1488,15 @@ void print_lm85(const sensors_chip_name *name)
|
||||
alarms = 0;
|
||||
}
|
||||
|
||||
if (!sensors_get_feature(*name,SENSORS_ADM1027_ALARM_MASK,&cur))
|
||||
alarm_mask = cur + 0.5;
|
||||
else {
|
||||
printf("ERROR: Can't get alarm mask data!\n");
|
||||
alarm_mask = 0;
|
||||
if( is1027 ) {
|
||||
if (!sensors_get_feature(*name,SENSORS_ADM1027_ALARM_MASK,&cur))
|
||||
alarm_mask = cur + 0.5;
|
||||
else {
|
||||
printf("ERROR: Can't get alarm mask data!\n");
|
||||
alarm_mask = 0;
|
||||
}
|
||||
} else {
|
||||
alarm_mask = 0 ;
|
||||
}
|
||||
|
||||
if (!sensors_get_label_and_valid(*name,SENSORS_LM85_IN0,&label,&valid) &&
|
||||
|
Reference in New Issue
Block a user