mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
parent
436d2ed591
commit
1a2ef223a0
1 changed files with 5 additions and 0 deletions
|
@ -487,6 +487,11 @@ pwmOutputConfiguration_t *pwmInit(drv_pwm_config_t *init)
|
||||||
if (init->useOneshot) {
|
if (init->useOneshot) {
|
||||||
ppmAvoidPWMTimerClash(timerHardwarePtr, TIM4);
|
ppmAvoidPWMTimerClash(timerHardwarePtr, TIM4);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#ifdef SPARKY
|
||||||
|
if (init->useOneshot) {
|
||||||
|
ppmAvoidPWMTimerClash(timerHardwarePtr, TIM2);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
ppmInConfig(timerHardwarePtr);
|
ppmInConfig(timerHardwarePtr);
|
||||||
} else if (type == MAP_TO_PWM_INPUT) {
|
} else if (type == MAP_TO_PWM_INPUT) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue