Skip to content

Commit

Permalink
undef USE_MAG_* when no USE_MAG
Browse files Browse the repository at this point in the history
  • Loading branch information
knoopx committed Aug 18, 2020
1 parent 08a87b7 commit 4073db3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/target/common_post.h
Expand Up @@ -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
Expand Down

0 comments on commit 4073db3

Please sign in to comment.