mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-27 12:30:43 +00:00
fix precision on w83781d temp outputs
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1211 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
59f68e3104
commit
a9f7b8ba8f
2 files changed
+7
-6
No files matched your search
@@ -33,6 +33,7 @@ ask CVS about it:
|
||||
Program isadump: Add flat address space (PCI) support
|
||||
Program mkpatch.pl: Add support for i2c-ali1535, adm1024, ds1621,
|
||||
fscpos, it87, maxilife, mtp008
|
||||
Program sensors: Fix w83781d temp precision
|
||||
Program sensors-detect: Add ALI1535, Via VT8233, it87 (i2c),
|
||||
Intel 82443MX and 82801CA/CAM detection,
|
||||
add ITE 8172G detection (driver in kernel 2.4.10)
|
||||
|
||||
@@ -2008,13 +2008,13 @@ void print_w83781d(const sensors_chip_name *name)
|
||||
if (valid) {
|
||||
if((!is82d) && (!is83s)) {
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, HYST, 1, 0);
|
||||
print_temp_info( cur, max, min, HYST, 0, 0);
|
||||
printf(" %s %s\n", alarms&W83781D_ALARM_TEMP1 ?"ALARM":" ",
|
||||
beeps&W83781D_ALARM_TEMP1?"(beep)":"");
|
||||
} else {
|
||||
if(!sensors_get_feature(*name,SENSORS_W83781D_SENS1,&sens)) {
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, HYST, 1, 0);
|
||||
print_temp_info( cur, max, min, HYST, 0, 0);
|
||||
printf( " sensor = %s %s %s\n",
|
||||
(((int)sens)==1)?"PII/Celeron diode":(((int)sens)==2)?
|
||||
"3904 transistor":"thermistor",
|
||||
@@ -2036,13 +2036,13 @@ void print_w83781d(const sensors_chip_name *name)
|
||||
if (valid) {
|
||||
if((!is82d) && (!is83s)) {
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, HYST, 0, 0);
|
||||
print_temp_info( cur, max, min, HYST, 1, 0);
|
||||
printf(" %s %s\n", alarms&W83781D_ALARM_TEMP2 ?"ALARM":" ",
|
||||
beeps&W83781D_ALARM_TEMP2?"(beep)":"");
|
||||
} else {
|
||||
if(!sensors_get_feature(*name,SENSORS_W83781D_SENS2,&sens)) {
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, HYST, 0, 0);
|
||||
print_temp_info( cur, max, min, HYST, 1, 0);
|
||||
printf( " sensor = %s %s %s\n",
|
||||
(((int)sens)==1)?"PII/Celeron diode":(((int)sens)==2)?
|
||||
"3904 transistor":"thermistor",
|
||||
@@ -2065,13 +2065,13 @@ void print_w83781d(const sensors_chip_name *name)
|
||||
if (valid) {
|
||||
if(!is82d) {
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, HYST, 0, 0);
|
||||
print_temp_info( cur, max, min, HYST, 1, 0);
|
||||
printf(" %s %s\n", alarms&W83781D_ALARM_TEMP2 ?"ALARM":" ",
|
||||
beeps&W83781D_ALARM_TEMP3?"(beep)":"");
|
||||
} else {
|
||||
if(!sensors_get_feature(*name,SENSORS_W83781D_SENS3,&sens)) {
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, HYST, 0, 0);
|
||||
print_temp_info( cur, max, min, HYST, 1, 0);
|
||||
printf( " sensor = %s %s %s\n",
|
||||
(((int)sens)==1)?"PII/Celeron diode":(((int)sens)==2)?
|
||||
"3904 transistor":"thermistor",
|
||||
|
||||
Reference in new issue
Block a user