[X9D/X7D] FrSky splash is now an option

This commit is contained in:
Bertrand Songis
2016-12-11 21:05:29 +01:00
parent 4f47c13efc
commit 7b5dfd7de5
8 changed files with 45 additions and 2 deletions
+4 -2
View File
@@ -8,7 +8,7 @@ option(FLIGHT_MODES "Flight Modes" ON)
option(CURVES "Curves" ON)
option(GVARS "Global variables" OFF)
option(GUI "GUI enabled" ON)
option(SPLASH "Splash enabled" ON)
set(SPLASH "DEFAULT" CACHE STRING "Splash (DEFAULT/OFF/FRSKY)")
set(PPM_UNIT "PERCENT_PREC1" CACHE STRING "PPM display unit (US/PERCENT_PREC1/PERCENT_PREC0)")
option(PPM_CENTER_ADJUSTABLE "PPM center adjustable" ON)
option(PPM_LIMITS_SYMETRICAL "PPM limits symetrical" OFF)
@@ -275,7 +275,9 @@ if(DANGEROUS_MODULE_FUNCTIONS)
add_definitions(-DDANGEROUS_MODULE_FUNCTIONS)
endif()
if(SPLASH)
if(SPLASH STREQUAL FRSKY)
add_definitions(-DSPLASH -DSPLASH_FRSKY)
elseif(NOT SPLASH STREQUAL OFF)
add_definitions(-DSPLASH)
endif()