diff --git a/CHANGES b/CHANGES index d8742a0f..f24ce808 100644 --- a/CHANGES +++ b/CHANGES @@ -12,6 +12,7 @@ SVN-HEAD Add ITE IT8720 support Add Texas Instruments TMP411 support Prevent misdetection of W83627DHG on I2C as LM78 + W83627DHG has no subclients 2.10.7 (20080701) Library: Don't choke on unrecognized devices, part 2 diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 49f94c19..ce7c802f 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -4471,10 +4471,11 @@ sub w83781d_detect return if $chip == 8 and $reg1 != 0x7a; return if $chip == 9 and $reg1 != 0xa1; return if $chip == 10 and $reg1 != 0xa2; - $reg1 = i2c_smbus_read_byte_data($file, 0x4a); # Default address is 0x2d @res = ($addr != 0x2d) ? (7) : (8); - return @res if $chip == 9; # No subclients + return @res if $chip >= 9; # No subclients + + $reg1 = i2c_smbus_read_byte_data($file, 0x4a); push @res, ($reg1 & 0x07) + 0x48 unless $reg1 & 0x08; push @res, (($reg1 & 0x70) >> 4) + 0x48 unless ($reg1 & 0x80 or $chip == 2); return @res;