From 1d4c8925cc5e7572f74489ccf0f161433be00071 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Thu, 29 Jan 2015 21:27:13 +0100 Subject: [PATCH] Invert the useage of USE_USART1_RX_DMA for clarity. --- src/main/drivers/serial_uart_stm32f10x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/drivers/serial_uart_stm32f10x.c b/src/main/drivers/serial_uart_stm32f10x.c index ba9128d41..5369206dc 100644 --- a/src/main/drivers/serial_uart_stm32f10x.c +++ b/src/main/drivers/serial_uart_stm32f10x.c @@ -48,8 +48,10 @@ static uartPort_t uartPort3; #endif // Using RX DMA disables the use of receive callbacks -#if !defined(CC3D) // FIXME move board specific code to target.h files. #define USE_USART1_RX_DMA + +#if defined(CC3D) // FIXME move board specific code to target.h files. +#undef USE_USART1_RX_DMA #endif void uartStartTxDMA(uartPort_t *s); -- 2.11.4.GIT