Skip to content

Commit

Permalink
FIX: If local config applied, do not include all drivers. (betaflight…
Browse files Browse the repository at this point in the history
  • Loading branch information
blckmn authored and davidbitton committed Feb 5, 2024
1 parent f6cc40e commit 4779bcf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/target/common_pre.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
// all the settings for classic build
#if !defined(CLOUD_BUILD) && !defined(SITL)

// if no board config is provided, include all drivers
#if !defined(USE_CONFIG)

#define USE_MAG

#if !defined(USE_BARO) && !defined(USE_FAKE_BARO)
Expand Down Expand Up @@ -117,7 +120,7 @@
#define USE_GYRO_MPU6050
#define USE_ACCGYRO_BMI160
#endif
#endif
#endif // ACC GYRO inclusion

#if !defined(USE_FLASH_CHIP)

Expand All @@ -141,7 +144,7 @@
#endif // USE_FLASH
#endif // USE_FLASH_CHIP

#ifndef USE_MAX7456
#if !defined(USE_MAX7456)
#define USE_MAX7456
#endif

Expand All @@ -158,6 +161,8 @@
#define USE_SDCARD
#endif

#endif // !defined(USE_CONFIG)

#if defined(STM32F405) || defined(STM32F745) || defined(STM32H7)
#define USE_VTX_RTC6705
#define USE_VTX_RTC6705_SOFTSPI
Expand Down

0 comments on commit 4779bcf

Please sign in to comment.