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(JITTER_MEASURE "Enable ADC jitter measurement" OFF)
option(WATCHDOG "Enable hardware Watchdog" ON)
option(ASTERISK "Enable asterisk icon (test only firmware)" OFF)
if(SDL_FOUND)
option(SIMU_AUDIO "Enable simulator audio." ON)
endif()
@@ -235,6 +236,10 @@ if(JITTER_MEASURE)
add_definitions(-DJITTER_MEASURE)
endif()
if(ASTERISK)
add_definitions(-DASTERISK)
endif()
if(WATCHDOG)
add_definitions(-DWATCHDOG)
endif()
+1 -1
View File
@@ -1392,7 +1392,7 @@ extern uint8_t latencyToggleSwitch;
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;
#endif