--read always return success
Status: Alpha
Brought to you by:
bjones1024
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.