aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoradelyser <12093019+adelyser@users.noreply.github.com>2022-08-19 14:42:20 -0400
committerGitHub <noreply@github.com>2022-08-19 14:42:20 -0400
commit9e4994cbdb5a3b1017a0dcca9808efde0de153d4 (patch)
treeaaca329a3a200cb9e66a85f9810cefd58a12ce94 /src
parent724b007c507832e7fbaf6b73b9ee2bb4f97af2c1 (diff)
downloadkutter-9e4994cbdb5a3b1017a0dcca9808efde0de153d4.tar.gz
kutter-9e4994cbdb5a3b1017a0dcca9808efde0de153d4.tar.xz
kutter-9e4994cbdb5a3b1017a0dcca9808efde0de153d4.zip
stm32: Fix the STM32H743 mcu temp on SKR 3 (#5711)
Signed-off-by: Aaron DeLyser <bluwolf@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/stm32/stm32h7_adc.c2
1 files changed, 1 insertions, 1 deletions
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);
}