mirror of
https://github.com/sheumann/hush.git
synced 2024-06-13 02:29:53 +00:00
i2cdetect: add a check for (mode == DETECT_MODE_AUTO)
We should only warn the user about addresses to be skipped if (mode == DETECT_MODE_AUTO). Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e545bf6723
commit
2204472497
|
@ -1336,7 +1336,9 @@ int i2cdetect_main(int argc UNUSED_PARAM, char **argv)
|
||||||
} else
|
} else
|
||||||
if (mode == DETECT_MODE_READ && !(funcs & I2C_FUNC_SMBUS_READ_BYTE)) {
|
if (mode == DETECT_MODE_READ && !(funcs & I2C_FUNC_SMBUS_READ_BYTE)) {
|
||||||
no_support("SMBus Receive Byte command");
|
no_support("SMBus Receive Byte command");
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (mode == DETECT_MODE_AUTO) {
|
||||||
if (!(funcs & I2C_FUNC_SMBUS_QUICK))
|
if (!(funcs & I2C_FUNC_SMBUS_QUICK))
|
||||||
will_skip("SMBus Quick Write");
|
will_skip("SMBus Quick Write");
|
||||||
if (!(funcs & I2C_FUNC_SMBUS_READ_BYTE))
|
if (!(funcs & I2C_FUNC_SMBUS_READ_BYTE))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user