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