diff --git a/radio/src/targets/taranis/CMakeLists.txt b/radio/src/targets/taranis/CMakeLists.txt index 225689bd3ff..cdb9b019ab9 100644 --- a/radio/src/targets/taranis/CMakeLists.txt +++ b/radio/src/targets/taranis/CMakeLists.txt @@ -155,6 +155,7 @@ elseif(PCB STREQUAL X7) set(NAVIGATION_TYPE x7) set(ROTARY_ENCODER YES) set(CPU_TYPE_FULL STM32F407xE) + set(FLYSKY_GIMBAL ON) add_definitions(-DFUNCTION_SWITCHES) add_definitions(-DRADIO_T20) add_definitions(-DMANUFACTURER_JUMPER) diff --git a/radio/src/targets/taranis/hal.h b/radio/src/targets/taranis/hal.h index 16cd94a2adf..263495d1b36 100644 --- a/radio/src/targets/taranis/hal.h +++ b/radio/src/targets/taranis/hal.h @@ -2703,7 +2703,7 @@ #define HAPTIC_GPIO_PIN GPIO_Pin_12 #endif -#if defined(RADIO_BOXER) +#if defined(RADIO_BOXER) || defined(RADIO_T20) // Flysky Hall Stick #define FLYSKY_HALL_SERIAL_USART UART4 #define FLYSKY_HALL_SERIAL_GPIO GPIOA