diff --git a/companion/src/firmwares/opentx/opentxinterface.cpp b/companion/src/firmwares/opentx/opentxinterface.cpp index 5ba4567f0..6e36d55fa 100644 --- a/companion/src/firmwares/opentx/opentxinterface.cpp +++ b/companion/src/firmwares/opentx/opentxinterface.cpp @@ -597,7 +597,7 @@ int OpenTxFirmware::getCapability(const Capability capability) case OffsetWeight: return (IS_ARM(board) ? 500 : 245); case Timers: - return (IS_ARM(board) ? 3 : 0); + return (IS_ARM(board) ? 3 : 2); case TimersName: return (IS_TARANIS(board) ? 8 : (IS_ARM(board) ? 3 : 0)); case PermTimers: diff --git a/radio/src/targets/common/arm/CMakeLists.txt b/radio/src/targets/common/arm/CMakeLists.txt index 2019f273b..b29c52d41 100644 --- a/radio/src/targets/common/arm/CMakeLists.txt +++ b/radio/src/targets/common/arm/CMakeLists.txt @@ -1,4 +1,4 @@ -option(TIMERS "Timers count" 2) +option(TIMERS "Timers count" 3) option(CLI "Command Line Interface" OFF) option(DEBUG "Debug mode" OFF) option(LOG_TELEMETRY "Telemetry Logs on SD card" OFF) @@ -12,6 +12,11 @@ option(DEBUG_INTERRUPTS "Count interrupts" OFF) option(DEBUG_TASKS "Task switching statistics" OFF) option(DEBUG_TIMERS "Time critical parts of the code" OFF) +if(TIMERS EQUAL 3) + add_definitions(-DTIMERS=3) +else() + add_definitions(-DTIMERS=2) +endif() if(LOG_TELEMETRY) add_definitions(-DLOG_TELEMETRY) endif() @@ -67,7 +72,6 @@ if(MULTIMODULE) add_definitions(-DMULTIMODULE) set(SRC ${SRC} pulses/multi_arm.cpp telemetry/spektrum.cpp) endif() -add_definitions(-DTIMERS=3) add_definitions(-DCPUARM -DVIRTUAL_INPUTS) add_definitions(-DTELEMETRY_FRSKY -DTELEMETRY_FRSKY_SPORT -DFRSKY_HUB -DGPS -DPXX -DDSM2) add_definitions(-DBOLD_FONT -DBATTGRAPH -DTHRTRACE -DGAUGES)