mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Remove usage of feature() from rx driver code so that driver code does
not have a dependency on config.c.
This commit is contained in:
parent
7356863939
commit
0b92f74b80
3 changed files with 14 additions and 7 deletions
|
@ -365,6 +365,11 @@ pwmOutputConfiguration_t *pwmInit(drv_pwm_config_t *init)
|
|||
#endif
|
||||
|
||||
if (type == MAP_TO_PPM_INPUT) {
|
||||
#ifdef CC3D
|
||||
if (init->useOneshot) {
|
||||
ppmAvoidPWMTimerClash(timerHardwarePtr, TIM4);
|
||||
}
|
||||
#endif
|
||||
ppmInConfig(timerHardwarePtr);
|
||||
} else if (type == MAP_TO_PWM_INPUT) {
|
||||
pwmInConfig(timerHardwarePtr, channelIndex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue