mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
drivers/mpu60x0 Fix the error when mpu60x0 in SPI case
This commit is contained in:
@@ -661,7 +661,7 @@ static int mpu_reset(FAR struct mpu_dev_s *dev)
|
||||
/* Awaken chip, issue hardware reset */
|
||||
|
||||
ret = __mpu_write_pwr_mgmt_1(dev, PWR_MGMT_1__DEVICE_RESET);
|
||||
if (ret != OK)
|
||||
if (ret < 0)
|
||||
{
|
||||
nxmutex_unlock(&dev->lock);
|
||||
snerr("Could not find mpu60x0!\n");
|
||||
|
||||
Reference in New Issue
Block a user