mirror of
https://github.com/apache/nuttx.git
synced 2026-10-18 03:28:59 +00:00
fix i2c slave register failed
Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
This commit is contained in:
parent
f4a234613e
commit
1ea19e7c54
1 changed files with 1 additions and 1 deletions
|
|
@ -509,7 +509,7 @@ int i2c_slave_register(FAR struct i2c_slave_s *dev, int bus, int addr,
|
|||
}
|
||||
|
||||
ret = I2CS_REGISTERCALLBACK(priv->dev, i2c_slave_callback, priv);
|
||||
if (ret > 0)
|
||||
if (ret >= 0)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue