sensors: Hide spurious errors on missing adm1026 inputs.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5052 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-12-01 10:41:36 +00:00
1 parent b0d8c041aa
commit f3363e1a31
2 files changed
+4 -2

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ SVN-HEAD
Program pwmconfig: Better diagnostics in pwmdisable
Give the fans some time to spin up
Program sensors: Hide spurious errors on missing f71872f voltage inputs
Hide spurious errors on missing adm1026 inputs
Program sensors-detect: Add Texas Instruments TMP401 detection
Mention the f75375s driver
Add SMSC LPC47B367-NC detection (no sensors)
+3 -2
View File
@@ -4849,7 +4849,8 @@ void print_adm1026(const sensors_chip_name *name)
printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n",
cur,min,max,(alarms&adm1026_alarms_in[i])?"ALARM":"");
}
} else {
} else if (i != 8 && i != 9) { /* in8 and in9 are mutually exclusive
with temp3 */
printf("ERROR: Can't get IN%d data!\n",i);
}
free(label);
@@ -4897,7 +4898,7 @@ void print_adm1026(const sensors_chip_name *name)
print_temp_info( cur, max, min, MINMAX, 0, 0);
puts( (alarms&adm1026_alarms_temp[i])?" ALARM":"" );
}
} else {
} else if (i != 2) { /* temp3 is mutually exclusive with in8+in9 */
printf("ERROR: Can't get TEMP%d data!\n",i+1);
}
free(label);