mirror of
https://github.com/apache/nuttx.git
synced 2026-08-09 06:25:09 +00:00
SAM3/4 I2C: Fix reversed logic in twi_startmessage().
This commit is contained in:
parent
1925df8faa
commit
d89e062c06
1 changed files with 1 additions and 1 deletions
|
|
@ -666,7 +666,7 @@ static void twi_startwrite(struct twi_dev_s *priv, struct i2c_msg_s *msg)
|
|||
|
||||
static void twi_startmessage(struct twi_dev_s *priv, struct i2c_msg_s *msg)
|
||||
{
|
||||
if ((msg->flags & I2C_M_READ) == 0)
|
||||
if ((msg->flags & I2C_M_READ) != 0)
|
||||
{
|
||||
twi_startread(priv, msg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue