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:
David Sidrane 2017-07-07 13:24:56 -10:00 committed by Lorenz Meier
parent 3272cc62d4
commit c3addd931c

View File

@ -293,6 +293,7 @@ MPU9250::init()
}
if (reset() != OK) {
PX4_ERR("Exiting! Device failed to take initialization");
goto out;
}