diff --git a/CHANGES b/CHANGES index cad9b0cf..1eef11d2 100644 --- a/CHANGES +++ b/CHANGES @@ -32,6 +32,7 @@ SVN HEAD Add Dallas DS75 detection Add SMSC LPC47M292 detection Add nVidia MCP61 and MCP65 detection + Fix ADM1028 detection 2.10.2 (20070115) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 8c34c657..7b7a4715 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -4351,10 +4351,10 @@ sub adm1022_detect ($chip == 1 and $reg == 0x49) or ($chip == 2 and $reg == 0x41); return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00; - $reg = i2c_smbus_read_byte_data($file, 0x3f); - return unless ($reg & 0xc0) == 0xc0; - return if $chip == 0 and ($reg & 0xc0) != 0xc0; - return if $chip == 2 and ($reg & 0xc0) == 0xc0; + $reg = i2c_smbus_read_byte_data($file, 0x3f) & 0xf0; + return unless ($chip == 0 and $reg == 0xc0) or + ($chip == 1 and $reg == 0xc0) or + ($chip == 2 and $reg == 0xd0); return (8); }