Skip to content

Commit ad0137a

Browse files
committed
platform/technic_hub: fix ADC TIM check
The timer used by the ADC was changed in 5e7a3bf. This was missed since asserts are not normally enabled.
1 parent 80284ec commit ad0137a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbio/platform/technic_hub/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) {
377377
ADC_ChannelConfTypeDef adc_ch_config = { 0 };
378378

379379
// clocks are enabled in SystemInit
380-
assert_param(__HAL_RCC_TIM2_IS_CLK_ENABLED());
380+
assert_param(__HAL_RCC_TIM6_IS_CLK_ENABLED());
381381
assert_param(__HAL_RCC_DMA1_IS_CLK_ENABLED());
382382
assert_param(__HAL_RCC_ADC1_IS_CLK_ENABLED());
383383

0 commit comments

Comments
 (0)