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:
parent
7219fb1fbc
commit
3dd085dc9e
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue