mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-18 19:30:54 +00:00
Handle chips who return the beta value as temp sensor type
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4595 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
a2b7c5b0b1
commit
712748f659
1 file changed
+5
@@ -209,6 +209,11 @@ static void print_generic_chip_temp(const sensors_chip_name *name,
|
||||
/* print out temperature sensor info */
|
||||
if (TEMP_FEATURE(SENSORS_FEATURE_TEMP_SENS)) {
|
||||
int sens = (int)TEMP_FEATURE_VAL(SENSORS_FEATURE_TEMP_SENS);
|
||||
|
||||
/* older kernels / drivers sometimes report a beta value for thermistors */
|
||||
if (sens > 1000)
|
||||
sens = 4;
|
||||
|
||||
printf("sensor = %s", sens == 0 ? "disabled" :
|
||||
sens == 1 ? "diode" :
|
||||
sens == 2 ? "transistor" :
|
||||
|
||||
Reference in new issue
Block a user