Some features are never scaled.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5876 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2010-11-02 13:00:19 +00:00
1 parent 9b44cc2819
commit 7f1c32dbd2
1 file changed
+2 -1
+2 -1
View File
@@ -439,7 +439,8 @@ static int sensors_read_dynamic_chip(sensors_chip_features *chip,
if (!all_subfeatures[i].name)
sensors_fatal_error(__func__, "Out of memory");
if (!(sftype & 0x80))
/* Other and misc subfeatures are never scaled */
if (sftype < SENSORS_SUBFEATURE_VID && !(sftype & 0x80))
all_subfeatures[i].flags |= SENSORS_COMPUTE_MAPPING;
all_subfeatures[i].flags |= sensors_get_attr_mode(dev_path, name);