Add handling for JumperRC versions (#7015)

This commit is contained in:
3djc
2019-10-28 14:57:48 +01:00
committed by GitHub
parent 8d2b294001
commit fafd68b1ee
3 changed files with 88 additions and 0 deletions
+4
View File
@@ -328,6 +328,10 @@ if(MODULE_PROTOCOL_D8)
add_definitions(-DMODULE_PROTOCOL_D8)
endif()
if(JUMPER_RELEASE)
add_definitions(-DJUMPER_RELEASE)
endif()
if(FRSKY_RELEASE)
add_definitions(-DFRSKY_RELEASE)
set(POPUP_LEVEL 3)
+6
View File
@@ -1,6 +1,12 @@
#define DATE "@DATE@"
#define TIME "@TIME@"
#if defined(FRSKY_RELEASE)
#define VERSION "FrSky"
#elif defined(JUMPER_RELEASE)
#define VERSION "JumperRC"
#else
#define VERSION "@VERSION@"
#endif
#define VERSION_MAJOR @VERSION_MAJOR@
#define VERSION_MINOR @VERSION_MINOR@