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);