mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
Detection bug for ADM9240 solved
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@492 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
949f5199c5
commit
746250b30a
1 file changed
+1
-1
@@ -370,7 +370,7 @@ static int adm9240_detect(struct i2c_adapter *adapter, int address, int kind)
|
||||
/* Now, we do the remaining detection. */
|
||||
|
||||
if (kind < 0) {
|
||||
if (((adm9240_read_value(new_client,ADM9240_REG_CONFIG) & 0x80) != 0x80) ||
|
||||
if (((adm9240_read_value(new_client,ADM9240_REG_CONFIG) & 0x80) != 0x00) ||
|
||||
(adm9240_read_value(new_client,ADM9240_REG_I2C_ADDR) != address))
|
||||
goto ERROR1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user