From c3addd931c8edebf58b7727d755f0134fbf1b65e Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 7 Jul 2017 13:24:56 -1000 Subject: [PATCH] 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. --- src/drivers/mpu9250/mpu9250.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/mpu9250/mpu9250.cpp b/src/drivers/mpu9250/mpu9250.cpp index 3d1d591d14..26fa339ea8 100644 --- a/src/drivers/mpu9250/mpu9250.cpp +++ b/src/drivers/mpu9250/mpu9250.cpp @@ -293,6 +293,7 @@ MPU9250::init() } if (reset() != OK) { + PX4_ERR("Exiting! Device failed to take initialization"); goto out; }