Skip to content

Commit

Permalink
fix timer
Browse files Browse the repository at this point in the history
  • Loading branch information
direvius committed Aug 8, 2018
1 parent 8237422 commit 4dcea2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/volta_box_v4/volta_box_stm32/Src/main.c
Expand Up @@ -212,9 +212,9 @@ static void MX_TIM3_Init(void)
TIM_MasterConfigTypeDef sMasterConfig;

htim3.Instance = TIM3;
htim3.Init.Prescaler = 4799;
htim3.Init.Prescaler = 479;
htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
htim3.Init.Period = 0;
htim3.Init.Period = 9;
htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
if (HAL_TIM_Base_Init(&htim3) != HAL_OK)
Expand Down

0 comments on commit 4dcea2d

Please sign in to comment.