1
0
Fork 0
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:
blckmn 2016-11-04 11:58:45 +11:00
parent 72d5160262
commit 3d6e0a29f7
3 changed files with 6 additions and 2 deletions

View file

@ -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);