Changeset 5613
- Timestamp:
- 01/19/09 22:07:56 (4 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
prog/detect/sensors-detect (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r5577 r5613 5 5 File lm_sensors.lsm: Delete, don't advertise a legacy branch 6 6 File doc/developers/release_checklist: Skip mail to lsm 7 Program sensors-detect: Fix detection of older DS1621 7 8 8 9 2.10.8 (20081216) -
lm-sensors/trunk/prog/detect/sensors-detect
r5598 r5613 3864 3864 return if ($conf & 0x10); 3865 3865 3866 my $counter = i2c_smbus_read_byte_data($file, 0xA8);3867 my $slope = i2c_smbus_read_byte_data($file, 0xA9);3868 return if ($slope != 0x10 || $counter > $slope);3869 3870 3866 my $temp = i2c_smbus_read_word_data($file, 0xAA); 3871 3867 return if $temp < 0 || ($temp & 0x0f00); … … 3880 3876 return if ($temp == 0 && $high == 0 && $low == 0 && $conf == 0); 3881 3877 3882 return 3; 3878 # Old versions of the DS1621 apparently don't have the counter and 3879 # slope registers (or they return crap) 3880 my $counter = i2c_smbus_read_byte_data($file, 0xA8); 3881 my $slope = i2c_smbus_read_byte_data($file, 0xA9); 3882 return ($slope == 0x10 && $counter <= $slope) ? 3 : 2; 3883 3883 } 3884 3884
