sensor/mpu60x0: correct mutex usage
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
4b5e3ddf51
commit
df55f0137a
@ -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);
|
||||
if (ret != OK)
|
||||
{
|
||||
mpu_unlock(dev);
|
||||
snerr("Could not find mpu60x0!\n");
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user