mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Fixed bug where channel mapping was incorrect when using GPS and RX
Parallel PWM on STM32F10X targets. Fixes #80. The check to see if usart2 should always be done. The PWM mapping code decides on a per-target base if possible pwm input channels need to be skipped due to pin usage clashes.
This commit is contained in:
parent
c3c6a90a17
commit
63236d5a2a
1 changed files with 1 additions and 6 deletions
|
@ -288,12 +288,7 @@ void init(void)
|
|||
else
|
||||
pwm_params.airplane = false;
|
||||
|
||||
#ifdef STM32F10X
|
||||
if (!feature(FEATURE_RX_PARALLEL_PWM)) {
|
||||
pwm_params.useUART2 = doesConfigurationUsePort(SERIAL_PORT_USART2);
|
||||
}
|
||||
#endif
|
||||
|
||||
pwm_params.useUART2 = doesConfigurationUsePort(SERIAL_PORT_USART2);
|
||||
pwm_params.useVbat = feature(FEATURE_VBAT);
|
||||
pwm_params.useSoftSerial = feature(FEATURE_SOFTSERIAL);
|
||||
pwm_params.useParallelPWM = feature(FEATURE_RX_PARALLEL_PWM);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue