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:
Frodo Looijaard committed 1999-06-22 22:09:09 +00:00
1 parent 949f5199c5
commit 746250b30a
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}