Skip to content

Commit

Permalink
fix: X10access - no PPM output on CPPM pin (#3419)
Browse files Browse the repository at this point in the history
  • Loading branch information
mha1 authored Apr 5, 2023
1 parent a089f2d commit 2ce94e3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions radio/src/targets/common/arm/stm32/stm32_pulse_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ void stm32_pulse_init(const stm32_pulse_timer_t* tim, uint32_t freq)
}

timInit.Prescaler = __LL_TIM_CALC_PSC(tim->TIM_Freq, freq);
if (IS_TIM_32B_COUNTER_INSTANCE(tim->TIMx)) {
timInit.Autoreload = 0xFFFFFFFFUL;
} else {
timInit.Autoreload = STM32_DEFAULT_TIMER_AUTORELOAD;
}
timInit.Autoreload = STM32_DEFAULT_TIMER_AUTORELOAD;

enable_tim_clock(tim->TIMx);
LL_TIM_Init(tim->TIMx, &timInit);
Expand Down

0 comments on commit 2ce94e3

Please sign in to comment.