diff --git a/radio/src/CMakeLists.txt b/radio/src/CMakeLists.txt index 16fdcaa66..1e133b41f 100644 --- a/radio/src/CMakeLists.txt +++ b/radio/src/CMakeLists.txt @@ -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() diff --git a/radio/src/opentx.h b/radio/src/opentx.h index 383e20ae1..b8e551548 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -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