sensor/mpu60x0: correct mutex usage

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-11-07 16:09:51 +08:00 committed by Xiang Xiao
parent 4b5e3ddf51
commit df55f0137a

View File

@ -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;
}