Skip to content

Commit

Permalink
FIX: Legacy drivers required for STM32F411DISCOVERY target (betafligh…
Browse files Browse the repository at this point in the history
  • Loading branch information
blckmn authored and davidbitton committed Feb 5, 2024
1 parent 1ba8f1a commit 76bf57b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions make/source.mk
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,18 @@ COMMON_SRC += \
drivers/vtx_rtc6705.c \
drivers/vtx_rtc6705_soft_spi.c

ifneq ($(CONFIG),)

GYRO_DEFINE := $(shell grep " USE_GYRO_" $(CONFIG_FILE) | awk '{print $$2}' )
LEGACY_GYRO_DEFINES := USE_GYRO_L3GD20
ifneq ($(findstring $(GYRO_DEFINE),$(LEGACY_GYRO_DEFINES)),)

COMMON_SRC += \
$(addprefix drivers/accgyro_legacy/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro_legacy/*.c)))

endif
endif

RX_SRC = \
rx/cc2500_common.c \
rx/cc2500_frsky_shared.c \
Expand Down

0 comments on commit 76bf57b

Please sign in to comment.