Merged in hardlulz/modem-3.0-nuttx-apps/fix-i2ctool-write (pull request #113)
Fixed i2ctool write operation in `no restart` mode (flag `-n`). Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
commit
65e9205344
@ -241,6 +241,7 @@ int i2ctool_set(FAR struct i2ctool_s *i2ctool, int fd, uint8_t regaddr,
|
||||
}
|
||||
else
|
||||
{
|
||||
msg[1].flags |= I2C_M_NORESTART;
|
||||
ret = i2cdev_transfer(fd, msg, 2);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user