Menu

#1 --read always return success

open
nobody
None
5
2007-10-25
2007-10-25
Bill Jones
No

Using the --read or --read-byte argument from the command line returns success even if the i2c operation fails. The returned bytes are all 0xff. for instance:

> i2c-cmd.pl --read --addr 0x06

returns "Read Bytes address(06)[ ff ]" even if i2c address doesn't exist.

This is a bug with i2c_read_reg as well.

Discussion


Log in to post a comment.