From ad0137a2958b8fe93f8e70d2438bd28449bc3c23 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 20 Jan 2021 13:17:33 -0600 Subject: [PATCH] platform/technic_hub: fix ADC TIM check The timer used by the ADC was changed in 5e7a3bf88b5e5b436d4d37d3e0654205866e8f1b. This was missed since asserts are not normally enabled. --- lib/pbio/platform/technic_hub/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pbio/platform/technic_hub/platform.c b/lib/pbio/platform/technic_hub/platform.c index c12002e19..9515fece8 100644 --- a/lib/pbio/platform/technic_hub/platform.c +++ b/lib/pbio/platform/technic_hub/platform.c @@ -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());