mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
D'oh! Fix it, really.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5932 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
e32821338f
commit
fa5a0694b4
1 file changed
+1
-1
@@ -5280,7 +5280,7 @@ sub eeprom_detect
|
||||
$checksum &= 0xff;
|
||||
|
||||
return 8 if $checksum == i2c_smbus_read_byte_data($file, 63);
|
||||
} elsif ($device_type <= 9 && $device_type <= 11) {
|
||||
} elsif ($device_type >= 9 && $device_type <= 11) {
|
||||
# see JEDEC 21-C 4.1.2.11 2.4
|
||||
my $crc_coverage = i2c_smbus_read_byte_data($file, 0);
|
||||
$crc_coverage = ($crc_coverage & 0x80) ? 117 : 126;
|
||||
|
||||
Reference in new issue
Block a user