From 5bd417e39e30f8ee350bdcf9df6922a1bf40500f Mon Sep 17 00:00:00 2001 From: Gautier Hattenberger Date: Fri, 19 Feb 2016 15:53:09 +0100 Subject: [PATCH] [mag] make channel config availale in all cases for hmc58xx module this is needed for the reporting function --- sw/airborne/modules/sensors/mag_hmc58xx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sw/airborne/modules/sensors/mag_hmc58xx.c b/sw/airborne/modules/sensors/mag_hmc58xx.c index 047bbaf972..53eea05649 100644 --- a/sw/airborne/modules/sensors/mag_hmc58xx.c +++ b/sw/airborne/modules/sensors/mag_hmc58xx.c @@ -30,10 +30,6 @@ #include "pprzlink/messages.h" #include "subsystems/datalink/downlink.h" -#if MODULE_HMC58XX_UPDATE_AHRS -#include "subsystems/imu.h" -#include "subsystems/abi.h" - #ifndef HMC58XX_CHAN_X #define HMC58XX_CHAN_X 0 #endif @@ -44,6 +40,9 @@ #define HMC58XX_CHAN_Z 2 #endif +#if MODULE_HMC58XX_UPDATE_AHRS +#include "subsystems/imu.h" +#include "subsystems/abi.h" #endif struct Hmc58xx mag_hmc58xx;