mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-25 13:20:35 +08:00
mpu9250: fix error return on reset fail
This commit is contained in:
@@ -125,7 +125,7 @@ MPU9250::init()
|
||||
|
||||
if (reset_mpu() != OK) {
|
||||
PX4_ERR("Exiting! Device failed to take initialization");
|
||||
return ret;
|
||||
return PX4_ERROR;
|
||||
}
|
||||
|
||||
/* Magnetometer setup */
|
||||
|
||||
Reference in New Issue
Block a user