1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +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:
Dominic Clifton 2014-10-18 18:16:58 +01:00
parent c3c6a90a17
commit 63236d5a2a

View file

@ -288,12 +288,7 @@ void init(void)
else else
pwm_params.airplane = false; pwm_params.airplane = false;
#ifdef STM32F10X pwm_params.useUART2 = doesConfigurationUsePort(SERIAL_PORT_USART2);
if (!feature(FEATURE_RX_PARALLEL_PWM)) {
pwm_params.useUART2 = doesConfigurationUsePort(SERIAL_PORT_USART2);
}
#endif
pwm_params.useVbat = feature(FEATURE_VBAT); pwm_params.useVbat = feature(FEATURE_VBAT);
pwm_params.useSoftSerial = feature(FEATURE_SOFTSERIAL); pwm_params.useSoftSerial = feature(FEATURE_SOFTSERIAL);
pwm_params.useParallelPWM = feature(FEATURE_RX_PARALLEL_PWM); pwm_params.useParallelPWM = feature(FEATURE_RX_PARALLEL_PWM);