From 54e90c2569eb4001b0a446f391560120309adf50 Mon Sep 17 00:00:00 2001 From: githubDLG Date: Thu, 20 Sep 2018 11:03:21 +0800 Subject: [PATCH] update target.h update target.h according to review comments --- src/main/target/CRAZYBEEF3FR/target.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/target/CRAZYBEEF3FR/target.h b/src/main/target/CRAZYBEEF3FR/target.h index 029deac0b3..c6ebce2134 100644 --- a/src/main/target/CRAZYBEEF3FR/target.h +++ b/src/main/target/CRAZYBEEF3FR/target.h @@ -80,6 +80,7 @@ #define ACC_1_ALIGN CW90_DEG #define USE_VCP +#if defined(CRAZYBEEF3DX) #define USE_UART2 #define USE_UART3 #define SERIAL_PORT_COUNT 3 @@ -87,6 +88,12 @@ #define UART2_RX_PIN PA15 #define UART3_TX_PIN PB10 #define UART3_RX_PIN PB11 +#else +#define USE_UART3 +#define SERIAL_PORT_COUNT 2 +#define UART3_TX_PIN PB10 +#define UART3_RX_PIN PB11 +#endif #define USE_SPI #define USE_SPI_DEVICE_1