1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Need to know if useUART2 is set.

The X_RACERSPI target overloads the UART2 pins.  Nobody was setting
this variable at all.  Apparently only needs to be set if F303xC.
This commit is contained in:
Mitch Miers 2016-09-25 19:52:44 -04:00
parent 7219fb1fbc
commit 3dd085dc9e

View file

@ -263,6 +263,7 @@ void init(void)
pwm_params.useUART2 = doesConfigurationUsePort(SERIAL_PORT_USART2);
#endif
#ifdef STM32F303xC
pwm_params.useUART2 = doesConfigurationUsePort(SERIAL_PORT_USART2);
pwm_params.useUART3 = doesConfigurationUsePort(SERIAL_PORT_USART3);
#endif
#if defined(USE_UART2) && defined(STM32F40_41xxx)