diff --git a/flight/CopterControl/Makefile b/flight/CopterControl/Makefile index 294e80e5f..c0bfd28ae 100644 --- a/flight/CopterControl/Makefile +++ b/flight/CopterControl/Makefile @@ -382,18 +382,39 @@ endif ifeq ($(ERASE_FLASH), YES) CDEFS += -DERASE_FLASH endif + +ifneq ($(USE_TELEMETRY), NO) ifeq ($(USE_TELEMETRY), YES) CDEFS += -DUSE_TELEMETRY +else +CDEFS += -DUSE_TELEMETRY -DPIOS_PORT_TELEMETRY=$(USE_TELEMETRY) endif +endif + +ifneq ($(USE_GPS), NO) ifeq ($(USE_GPS), YES) CDEFS += -DUSE_GPS +else +CDEFS += -DUSE_GPS -DPIOS_PORT_GPS=$(USE_GPS) endif +endif + +ifneq ($(USE_SPEKTRUM), NO) ifeq ($(USE_SPEKTRUM), YES) CDEFS += -DUSE_SPEKTRUM +else +CDEFS += -DUSE_SPEKTRUM -DPIOS_PORT_SPEKTRUM=$(USE_SPEKTRUM) endif +endif + +ifneq ($(USE_SBUS), NO) ifeq ($(USE_SBUS), YES) CDEFS += -DUSE_SBUS +else +CDEFS += -DUSE_SBUS -DPIOS_PORT_SBUS=$(USE_SBUS) endif +endif + ifeq ($(USE_I2C), YES) CDEFS += -DUSE_I2C endif