Skip to content

Commit

Permalink
platform/technic_hub: fix ADC TIM check
Browse files Browse the repository at this point in the history
The timer used by the ADC was changed in 5e7a3bf.
This was missed since asserts are not normally enabled.
  • Loading branch information
dlech committed Jan 20, 2021
1 parent 80284ec commit ad0137a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pbio/platform/technic_hub/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) {
ADC_ChannelConfTypeDef adc_ch_config = { 0 };

// clocks are enabled in SystemInit
assert_param(__HAL_RCC_TIM2_IS_CLK_ENABLED());
assert_param(__HAL_RCC_TIM6_IS_CLK_ENABLED());
assert_param(__HAL_RCC_DMA1_IS_CLK_ENABLED());
assert_param(__HAL_RCC_ADC1_IS_CLK_ENABLED());

Expand Down

0 comments on commit ad0137a

Please sign in to comment.