Fixed i2ctool write operation in no restart mode (flag -n).

It seems that I2C driver has changed a bit since i2ctool was written,
so now i2ctool sends repeated start even if `no restart` flag (-n)
was passed to it.
This commit is contained in:
DL 2017-11-01 06:11:53 +03:00
parent 769ffb8a4b
commit 42ec1aad65

View File

@ -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);
}