mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
sensor/mpu60x0: correct mutex usage
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -694,6 +694,7 @@ static int mpu_reset(FAR struct mpu_dev_s *dev)
|
|||||||
ret = __mpu_write_pwr_mgmt_1(dev, PWR_MGMT_1__DEVICE_RESET);
|
ret = __mpu_write_pwr_mgmt_1(dev, PWR_MGMT_1__DEVICE_RESET);
|
||||||
if (ret != OK)
|
if (ret != OK)
|
||||||
{
|
{
|
||||||
|
mpu_unlock(dev);
|
||||||
snerr("Could not find mpu60x0!\n");
|
snerr("Could not find mpu60x0!\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user