From 9cd93dcf03454cf5b2889290ef927b9e4074a6a6 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 8 Jul 2017 16:31:12 +0200 Subject: [PATCH] MPU9250: Fix boot on Pixhawk Mini This requires further investigation. Hotfix. --- src/drivers/mpu9250/mag.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/mpu9250/mag.cpp b/src/drivers/mpu9250/mag.cpp index 1026429927..bc0f215a0b 100644 --- a/src/drivers/mpu9250/mag.cpp +++ b/src/drivers/mpu9250/mag.cpp @@ -101,6 +101,7 @@ MPU9250_mag::MPU9250_mag(MPU9250 *parent, device::Device *interface, const char _mag_scale.z_scale = 1.0f; _mag_range_scale = MPU9250_MAG_RANGE_GA; + _debug_enabled = true; } MPU9250_mag::~MPU9250_mag() @@ -153,7 +154,7 @@ MPU9250_mag::init() // &_mag_orb_class_instance, (is_external()) ? ORB_PRIO_MAX - 1 : ORB_PRIO_HIGH - 1); if (_mag_topic == nullptr) { - warnx("ADVERT FAIL"); + PX4_ERR("ADVERT FAIL"); } }