mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Fix PPM/PWM code.
This commit is contained in:
parent
6721587566
commit
6e00615baf
2 changed files with 2 additions and 1 deletions
|
@ -150,6 +150,7 @@ void ppmInConfig(uint8_t timerIndex)
|
|||
const timerHardware_t *timerHardwarePtr = &(timerHardware[timerIndex]);
|
||||
|
||||
p->mode = INPUT_MODE_PPM;
|
||||
p->timerHardware = timerHardwarePtr;
|
||||
|
||||
pwmGPIOConfig(timerHardwarePtr->gpio, timerHardwarePtr->pin, timerHardwarePtr->gpioInputMode);
|
||||
pwmICConfig(timerHardwarePtr->tim, timerHardwarePtr->channel, TIM_ICPolarity_Rising);
|
||||
|
|
|
@ -191,8 +191,8 @@ int main(void)
|
|||
#ifndef FY90Q
|
||||
timerInit();
|
||||
#endif
|
||||
pwmInit(&pwm_params);
|
||||
pwmRxInit(failsafe, ¤tProfile.failsafeConfig);
|
||||
pwmInit(&pwm_params);
|
||||
|
||||
rxInit(&masterConfig.rxConfig, failsafe);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue