mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 14:43:34 +08:00
compile fix
This commit is contained in:
@@ -178,7 +178,7 @@ I2C::transfer(i2c_msg_s *msgv, unsigned msgs)
|
|||||||
* preference. Really, this is pointless.
|
* preference. Really, this is pointless.
|
||||||
*/
|
*/
|
||||||
I2C_SETFREQUENCY(_dev, _frequency);
|
I2C_SETFREQUENCY(_dev, _frequency);
|
||||||
ret = I2C_TRANSFER(_dev, msgv, msgs);
|
int ret = I2C_TRANSFER(_dev, msgv, msgs);
|
||||||
|
|
||||||
if (ret != OK)
|
if (ret != OK)
|
||||||
up_i2creset(_dev);
|
up_i2creset(_dev);
|
||||||
|
|||||||
Reference in New Issue
Block a user