From 9e4994cbdb5a3b1017a0dcca9808efde0de153d4 Mon Sep 17 00:00:00 2001 From: adelyser <12093019+adelyser@users.noreply.github.com> Date: Fri, 19 Aug 2022 14:42:20 -0400 Subject: [PATCH] stm32: Fix the STM32H743 mcu temp on SKR 3 (#5711) Signed-off-by: Aaron DeLyser --- src/stm32/stm32h7_adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stm32/stm32h7_adc.c b/src/stm32/stm32h7_adc.c index ca149d3d..00be6209 100644 --- a/src/stm32/stm32h7_adc.c +++ b/src/stm32/stm32h7_adc.c @@ -190,7 +190,7 @@ gpio_adc_setup(uint32_t pin) } if (pin == ADC_TEMPERATURE_PIN) { - ADC3_COMMON->CCR = ADC_CCR_TSEN; + ADC3_COMMON->CCR |= ADC_CCR_TSEN; } else { gpio_peripheral(pin, GPIO_ANALOG, 0); }