From c5139fb9dca359a8ee013cab68bc953a5655950e Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Sat, 22 Nov 2014 01:16:07 +0000 Subject: [PATCH] CC3D - fix cc3d build. SERIAL_PORT_USART2 is undefined for CC3D. --- src/main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/main.c b/src/main/main.c index a7d0d3153..41e3c9ba0 100755 --- a/src/main/main.c +++ b/src/main/main.c @@ -262,7 +262,7 @@ void init(void) pwm_params.airplane = true; else pwm_params.airplane = false; -#ifdef STM32F10X +#if defined(SERIAL_PORT_USART2) && defined(STM32F10X) pwm_params.useUART2 = doesConfigurationUsePort(SERIAL_PORT_USART2); #endif pwm_params.useVbat = feature(FEATURE_VBAT);