From 17ed43d0d0dcbda1d75e6b2080daf15c62705bed Mon Sep 17 00:00:00 2001 From: Richard Li Date: Wed, 7 Jul 2021 13:48:32 +0800 Subject: [PATCH] Fixed flysky hall stick mod problem in T16. --- radio/src/targets/horus/CMakeLists.txt | 1 + radio/src/targets/horus/hal.h | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/radio/src/targets/horus/CMakeLists.txt b/radio/src/targets/horus/CMakeLists.txt index bfbb3153e..c01057e9c 100644 --- a/radio/src/targets/horus/CMakeLists.txt +++ b/radio/src/targets/horus/CMakeLists.txt @@ -183,6 +183,7 @@ endif() if(FLYSKY_HALL_STICKS) add_definitions(-DFLYSKY_HALL_STICKS) + add_definitions(-DFLYSKY_HALL_STICKS_REVERSE) set(AUX_SERIAL OFF) set(FLYSKY_HALL_STICKS_DRIVER flyskyHallStick_driver.cpp) endif() diff --git a/radio/src/targets/horus/hal.h b/radio/src/targets/horus/hal.h index 752ed29d4..8d7be0da5 100644 --- a/radio/src/targets/horus/hal.h +++ b/radio/src/targets/horus/hal.h @@ -758,10 +758,6 @@ // Flysky Hall Stick #if defined(FLYSKY_HALL_STICKS) - #if defined (RADIO_TX16S) - #define FLYSKY_HALL_STICKS_REVERSE - #endif - #define FLYSKY_HALL_SERIAL_USART UART4 #define FLYSKY_HALL_SERIAL_GPIO GPIOA #define FLYSKY_HALL_DMA_Channel DMA_Channel_4 @@ -784,7 +780,6 @@ #define FLYSKY_HALL_RX_DMA_Stream_IRQHandler DMA1_Stream2_IRQHandler #define FLYSKY_HALL_TX_DMA_Stream_IRQHandler DMA1_Stream4_IRQHandler - #endif // Internal Module