mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-29 05:17:50 +00:00
Better interpretation of it87 temperature sensor types.
(Takeru Komoriya) git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2306 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
parent
cbbb80616e
commit
fb5229a046
@ -3145,7 +3145,8 @@ void print_it87(const sensors_chip_name *name)
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, MINMAX, 0, 0);
|
||||
printf(" sensor = %s ", (((int)sens)==3) ? "diode" :
|
||||
(((int)sens)==2) ? "thermistor" : "invalid");
|
||||
(((int)sens)==2) ? "thermistor" :
|
||||
(((int)sens)==0) ? "disabled" : "invalid");
|
||||
printf( " %s\n", alarms & IT87_ALARM_TEMP1 ? "ALARM" : "" );
|
||||
}
|
||||
} else
|
||||
@ -3160,7 +3161,8 @@ void print_it87(const sensors_chip_name *name)
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, MINMAX, 0, 0);
|
||||
printf(" sensor = %s ", (((int)sens)==3) ? "diode" :
|
||||
(((int)sens)==2) ? "thermistor" : "invalid");
|
||||
(((int)sens)==2) ? "thermistor" :
|
||||
(((int)sens)==0) ? "disabled" : "invalid");
|
||||
printf( " %s\n", alarms & IT87_ALARM_TEMP2 ? "ALARM" : "" );
|
||||
}
|
||||
} else
|
||||
@ -3175,7 +3177,8 @@ void print_it87(const sensors_chip_name *name)
|
||||
print_label(label,10);
|
||||
print_temp_info( cur, max, min, MINMAX, 0, 0);
|
||||
printf(" sensor = %s ", (((int)sens)==3) ? "diode" :
|
||||
(((int)sens)==2) ? "thermistor" : "invalid");
|
||||
(((int)sens)==2) ? "thermistor" :
|
||||
(((int)sens)==0) ? "disabled" : "invalid");
|
||||
printf( " %s\n", alarms & IT87_ALARM_TEMP3 ? "ALARM" : "" );
|
||||
}
|
||||
} else
|
||||
|
Loading…
x
Reference in New Issue
Block a user