fix(trainer): use the timer passed as argument (#5019)

This commit is contained in:
Raphael Coeffic
2024-05-25 10:20:30 +10:00
committed by GitHub
parent e55b62e64d
commit 390c71cd44
@@ -174,7 +174,7 @@ static void trainer_send_next_frame(const stm32_pulse_timer_t* tim)
// load the first period: next reload when CC compare event triggers
trainerPulsesData.ppm.ptr = trainerPulsesData.ppm.pulses;
TRAINER_TIMER->ARR = *(trainerPulsesData.ppm.ptr++);
tim->TIMx->ARR = *(trainerPulsesData.ppm.ptr++);
switch (tim->TIM_Channel) {
case LL_TIM_CHANNEL_CH1: