2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +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:
Jean Delvare
2011-02-17 19:28:47 +00:00
parent e32821338f
commit fa5a0694b4

View File

@@ -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;