Cosmetics
This commit is contained in:
@@ -597,7 +597,7 @@ int OpenTxFirmware::getCapability(const Capability capability)
|
|||||||
case OffsetWeight:
|
case OffsetWeight:
|
||||||
return (IS_ARM(board) ? 500 : 245);
|
return (IS_ARM(board) ? 500 : 245);
|
||||||
case Timers:
|
case Timers:
|
||||||
return (IS_ARM(board) ? 3 : 0);
|
return (IS_ARM(board) ? 3 : 2);
|
||||||
case TimersName:
|
case TimersName:
|
||||||
return (IS_TARANIS(board) ? 8 : (IS_ARM(board) ? 3 : 0));
|
return (IS_TARANIS(board) ? 8 : (IS_ARM(board) ? 3 : 0));
|
||||||
case PermTimers:
|
case PermTimers:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
option(TIMERS "Timers count" 2)
|
option(TIMERS "Timers count" 3)
|
||||||
option(CLI "Command Line Interface" OFF)
|
option(CLI "Command Line Interface" OFF)
|
||||||
option(DEBUG "Debug mode" OFF)
|
option(DEBUG "Debug mode" OFF)
|
||||||
option(LOG_TELEMETRY "Telemetry Logs on SD card" 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_TASKS "Task switching statistics" OFF)
|
||||||
option(DEBUG_TIMERS "Time critical parts of the code" 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)
|
if(LOG_TELEMETRY)
|
||||||
add_definitions(-DLOG_TELEMETRY)
|
add_definitions(-DLOG_TELEMETRY)
|
||||||
endif()
|
endif()
|
||||||
@@ -67,7 +72,6 @@ if(MULTIMODULE)
|
|||||||
add_definitions(-DMULTIMODULE)
|
add_definitions(-DMULTIMODULE)
|
||||||
set(SRC ${SRC} pulses/multi_arm.cpp telemetry/spektrum.cpp)
|
set(SRC ${SRC} pulses/multi_arm.cpp telemetry/spektrum.cpp)
|
||||||
endif()
|
endif()
|
||||||
add_definitions(-DTIMERS=3)
|
|
||||||
add_definitions(-DCPUARM -DVIRTUAL_INPUTS)
|
add_definitions(-DCPUARM -DVIRTUAL_INPUTS)
|
||||||
add_definitions(-DTELEMETRY_FRSKY -DTELEMETRY_FRSKY_SPORT -DFRSKY_HUB -DGPS -DPXX -DDSM2)
|
add_definitions(-DTELEMETRY_FRSKY -DTELEMETRY_FRSKY_SPORT -DFRSKY_HUB -DGPS -DPXX -DDSM2)
|
||||||
add_definitions(-DBOLD_FONT -DBATTGRAPH -DTHRTRACE -DGAUGES)
|
add_definitions(-DBOLD_FONT -DBATTGRAPH -DTHRTRACE -DGAUGES)
|
||||||
|
|||||||
Reference in New Issue
Block a user