Make list of supported internal module configurable per cmake option

Resolves #1159
This commit is contained in:
Raphael Coeffic
2021-11-29 09:00:59 +10:00
committed by Peter Feerick
parent eabb20a9ad
commit b8335b994f
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ add_definitions(-DBATTERY_CHARGE) # -DSOFTWARE_VOLUME
add_definitions(-DINTERNAL_MODULE_AFHDS2A)
# defines existing internal modules
set(INTERNAL_MODULES AFHDS2A)
set(INTERNAL_MODULES AFHDS2A CACHE STRING "Internal modules")
set(DEFAULT_INTERNAL_MODULE FLYSKY CACHE STRING "Default internal module")
set(TARGET_SRC