saramonteiro commented on a change in pull request #3646:
URL: https://github.com/apache/incubator-nuttx/pull/3646#discussion_r625031533



##########
File path: drivers/sensors/mpu60x0.c
##########
@@ -709,7 +710,12 @@ static int mpu_reset(FAR struct mpu_dev_s *dev)
 
   /* Awaken chip, issue hardware reset */
 
-  __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)
+    {
+      serr("Could not find mpu60x0!\n");

Review comment:
       ```suggestion
         snerr("Could not find mpu60x0!\n");
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to