1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

SPARKY - Apply Oneshot/PPM timer clash fix.

Closes #756.
This commit is contained in:
Dominic Clifton 2015-04-14 19:29:11 +01:00
parent 436d2ed591
commit 1a2ef223a0

View file

@ -487,6 +487,11 @@ pwmOutputConfiguration_t *pwmInit(drv_pwm_config_t *init)
if (init->useOneshot) {
ppmAvoidPWMTimerClash(timerHardwarePtr, TIM4);
}
#endif
#ifdef SPARKY
if (init->useOneshot) {
ppmAvoidPWMTimerClash(timerHardwarePtr, TIM2);
}
#endif
ppmInConfig(timerHardwarePtr);
} else if (type == MAP_TO_PWM_INPUT) {