CC3D - fix cc3d build.

SERIAL_PORT_USART2 is undefined for CC3D.
This commit is contained in:
Dominic Clifton 2014-11-22 01:16:07 +00:00
parent 249b09abce
commit c5139fb9dc
1 changed files with 1 additions and 1 deletions

View File

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