mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
FIX: If local config applied, do not include all drivers. (#12483)
This commit is contained in:
parent
ccffbbb555
commit
44bfbda40d
1 changed files with 7 additions and 2 deletions
|
@ -71,6 +71,9 @@
|
||||||
// all the settings for classic build
|
// all the settings for classic build
|
||||||
#if !defined(CLOUD_BUILD) && !defined(SITL)
|
#if !defined(CLOUD_BUILD) && !defined(SITL)
|
||||||
|
|
||||||
|
// if no board config is provided, include all drivers
|
||||||
|
#if !defined(USE_CONFIG)
|
||||||
|
|
||||||
#define USE_MAG
|
#define USE_MAG
|
||||||
|
|
||||||
#if !defined(USE_BARO) && !defined(USE_FAKE_BARO)
|
#if !defined(USE_BARO) && !defined(USE_FAKE_BARO)
|
||||||
|
@ -117,7 +120,7 @@
|
||||||
#define USE_GYRO_MPU6050
|
#define USE_GYRO_MPU6050
|
||||||
#define USE_ACCGYRO_BMI160
|
#define USE_ACCGYRO_BMI160
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif // ACC GYRO inclusion
|
||||||
|
|
||||||
#if !defined(USE_FLASH_CHIP)
|
#if !defined(USE_FLASH_CHIP)
|
||||||
|
|
||||||
|
@ -141,7 +144,7 @@
|
||||||
#endif // USE_FLASH
|
#endif // USE_FLASH
|
||||||
#endif // USE_FLASH_CHIP
|
#endif // USE_FLASH_CHIP
|
||||||
|
|
||||||
#ifndef USE_MAX7456
|
#if !defined(USE_MAX7456)
|
||||||
#define USE_MAX7456
|
#define USE_MAX7456
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -158,6 +161,8 @@
|
||||||
#define USE_SDCARD
|
#define USE_SDCARD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // !defined(USE_CONFIG)
|
||||||
|
|
||||||
#if defined(STM32F405) || defined(STM32F745) || defined(STM32H7)
|
#if defined(STM32F405) || defined(STM32F745) || defined(STM32H7)
|
||||||
#define USE_VTX_RTC6705
|
#define USE_VTX_RTC6705
|
||||||
#define USE_VTX_RTC6705_SOFTSPI
|
#define USE_VTX_RTC6705_SOFTSPI
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue