2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Hide 2.6 adm1027 alarm_mask being missing.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2665 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2004-08-19 17:22:24 +00:00
parent 0d969d7486
commit 3046624dea

View File

@@ -1365,7 +1365,7 @@ void print_lm85(const sensors_chip_name *name)
{
char *label = NULL;
double cur, min, max;
int alarms, alarm_mask, valid;
int alarms, alarm_mask = 0, valid;
int is85, is1027, is6d100;
is85 = !strcmp(name->prefix,"lm85")
@@ -1382,15 +1382,9 @@ void print_lm85(const sensors_chip_name *name)
alarms = 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 (is1027 &&
!sensors_get_feature(*name, SENSORS_ADM1027_ALARM_MASK, &cur)) {
alarm_mask = cur + 0.5;
}
if (!sensors_get_label_and_valid(*name,SENSORS_LM85_IN0,&label,&valid) &&