mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +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)
|
if (priv->error != OK)
|
||||||
{
|
{
|
||||||
ret = priv->error;
|
ret = priv->error;
|
||||||
|
wostop = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user