mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 07:43: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) {
|
if (reset_mpu() != OK) {
|
||||||
PX4_ERR("Exiting! Device failed to take initialization");
|
PX4_ERR("Exiting! Device failed to take initialization");
|
||||||
return ret;
|
return PX4_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Magnetometer setup */
|
/* Magnetometer setup */
|
||||||
|
|||||||
Reference in New Issue
Block a user