mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 09:34:07 +08:00
mpu9250: fix error return on reset fail
This commit is contained in:
parent
45937fb70a
commit
25cbcca84a
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user