mpu9250: fix error return on reset fail

This commit is contained in:
Daniel Agar
2020-01-04 11:41:56 -05:00
parent 45937fb70a
commit 25cbcca84a
+1 -1
View File
@@ -125,7 +125,7 @@ MPU9250::init()
if (reset_mpu() != OK) { if (reset_mpu() != OK) {
PX4_ERR("Exiting! Device failed to take initialization"); PX4_ERR("Exiting! Device failed to take initialization");
return ret; return PX4_ERROR;
} }
/* Magnetometer setup */ /* Magnetometer setup */