mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 13:44:06 +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:
parent
3272cc62d4
commit
c3addd931c
@ -293,6 +293,7 @@ MPU9250::init()
|
||||
}
|
||||
|
||||
if (reset() != OK) {
|
||||
PX4_ERR("Exiting! Device failed to take initialization");
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user