mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
arch: cxd56xx: Fix not restart after TX error
Fix a bug that I2C driver can not transfer after TX abort error. It caused by remaining NO_STOP flag status.
This commit is contained in:
@@ -667,6 +667,7 @@ static int cxd56_i2c_transfer(struct i2c_master_s *dev,
|
||||
if (priv->error != OK)
|
||||
{
|
||||
ret = priv->error;
|
||||
wostop = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user