Skip to content

Commit

Permalink
Merge pull request #10113 from knoopx/improve-custom-builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeller committed Oct 3, 2021
1 parent 49216b7 commit 3f1abc2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/cli/cli.c
Expand Up @@ -1773,6 +1773,7 @@ static void printMotorMix(dumpFlags_t dumpMask, const motorMixer_t *customMotorM
static void cliMotorMix(const char *cmdName, char *cmdline)
{
#ifdef USE_QUAD_MIXER_ONLY
UNUSED(cmdName);
UNUSED(cmdline);
#else
int check = 0;
Expand Down
15 changes: 15 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 Expand Up @@ -192,6 +202,11 @@
#undef USE_USB_MSC
#endif

#if !defined(USE_SDCARD)
#undef USE_SDCARD_SDIO
#undef USE_SDCARD_SPI
#endif

#if !defined(USE_VCP)
#undef USE_USB_CDC_HID
#undef USE_USB_MSC
Expand Down

0 comments on commit 3f1abc2

Please sign in to comment.