ASTERISK option added

This commit is contained in:
Bertrand Songis
2019-11-21 13:51:33 +01:00
parent 3d8070400a
commit 0c168d046b
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -33,6 +33,7 @@ option(AUTOSWITCH "Automatic switch detection in menus" ON)
option(SEMIHOSTING "Enable debugger semihosting" OFF) option(SEMIHOSTING "Enable debugger semihosting" OFF)
option(JITTER_MEASURE "Enable ADC jitter measurement" OFF) option(JITTER_MEASURE "Enable ADC jitter measurement" OFF)
option(WATCHDOG "Enable hardware Watchdog" ON) option(WATCHDOG "Enable hardware Watchdog" ON)
option(ASTERISK "Enable asterisk icon (test only firmware)" OFF)
if(SDL_FOUND) if(SDL_FOUND)
option(SIMU_AUDIO "Enable simulator audio." ON) option(SIMU_AUDIO "Enable simulator audio." ON)
endif() endif()
@@ -235,6 +236,10 @@ if(JITTER_MEASURE)
add_definitions(-DJITTER_MEASURE) add_definitions(-DJITTER_MEASURE)
endif() endif()
if(ASTERISK)
add_definitions(-DASTERISK)
endif()
if(WATCHDOG) if(WATCHDOG)
add_definitions(-DWATCHDOG) add_definitions(-DWATCHDOG)
endif() endif()
+1 -1
View File
@@ -1392,7 +1392,7 @@ extern uint8_t latencyToggleSwitch;
inline bool isAsteriskDisplayed() inline bool isAsteriskDisplayed()
{ {
#if defined(LOG_TELEMETRY) || !defined(WATCHDOG) || defined(DEBUG_LATENCY) #if defined(ASTERISK) || !defined(WATCHDOG) || defined(LOG_TELEMETRY) || defined(DEBUG_LATENCY)
return true; return true;
#endif #endif