From 4073db363bdf3c98f6fd2974a21e73bf1bebd8cd Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 18 Aug 2020 18:34:09 +0200 Subject: [PATCH] undef USE_MAG_* when no USE_MAG --- src/main/target/common_post.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/target/common_post.h b/src/main/target/common_post.h index ffa0202582..c268184d05 100644 --- a/src/main/target/common_post.h +++ b/src/main/target/common_post.h @@ -58,6 +58,16 @@ #endif #endif +#if !defined(USE_MAG) +#undef USE_MAG_DATA_READY_SIGNAL +#undef USE_MAG_HMC5883 +#undef USE_MAG_SPI_HMC5883 +#undef USE_MAG_QMC5883 +#undef USE_MAG_LIS3MDL +#undef USE_MAG_AK8963 +#undef USE_MAG_SPI_AK8963 +#endif + #if !defined(USE_BARO) && !defined(USE_GPS) #undef USE_VARIO #endif