return 0 if OK

This commit is contained in:
admin 2015-10-02 12:14:09 +02:00
parent 9dcff018bc
commit df5c815267

View File

@ -356,7 +356,7 @@ static int i2c_transfer(FAR struct i2c_dev_s *dev, FAR struct i2c_msg_s *msgs, i
priv->msgs = msgs;
priv->nmsg = count;
ret = count - i2c_start(priv);
ret = i2c_start(priv);
return ret;
}