mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 07:03:34 +08:00
mpu9250:Issue error on console when a device fails to take initialization
On initialization, if after 3 retries to re-init the mpu9250 from the checked registers values, it fails. Ensure thath the fact the driver is exitting is logged to console.
This commit is contained in:
committed by
Lorenz Meier
parent
3272cc62d4
commit
c3addd931c
@@ -293,6 +293,7 @@ MPU9250::init()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (reset() != OK) {
|
if (reset() != OK) {
|
||||||
|
PX4_ERR("Exiting! Device failed to take initialization");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user