mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Added missing TimeBaseStructInit and explicitly set repetitioncounter for F4 and F7 as per F3.
This commit is contained in:
parent
72d5160262
commit
3d6e0a29f7
3 changed files with 6 additions and 2 deletions
|
@ -119,7 +119,8 @@ void pwmDigitalMotorHardwareConfig(const timerHardware_t *timerHardware, uint8_t
|
|||
|
||||
if (configureTimer) {
|
||||
TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure;
|
||||
|
||||
TIM_TimeBaseStructInit(&TIM_TimeBaseStructure);
|
||||
|
||||
RCC_ClockCmd(timerRCC(timer), ENABLE);
|
||||
TIM_Cmd(timer, DISABLE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue