1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

FIX: If local config applied, do not include all drivers. (#12483)

This commit is contained in:
J Blackman 2023-03-10 06:37:43 +11:00 committed by GitHub
parent ccffbbb555
commit 44bfbda40d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
@ -117,7 +120,7 @@
#define USE_GYRO_MPU6050
#define USE_ACCGYRO_BMI160
#endif
#endif
#endif // ACC GYRO inclusion
#if !defined(USE_FLASH_CHIP)
@ -141,7 +144,7 @@
#endif // USE_FLASH
#endif // USE_FLASH_CHIP
#ifndef USE_MAX7456
#if !defined(USE_MAX7456)
#define USE_MAX7456
#endif
@ -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