Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Klipper3d/klipper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradelyser <12093019+adelyser@users.noreply.github.com>2022-08-19 21:42:20 +0300
committerGitHub <noreply@github.com>2022-08-19 21:42:20 +0300
commit9e4994cbdb5a3b1017a0dcca9808efde0de153d4 (patch)
treeaaca329a3a200cb9e66a85f9810cefd58a12ce94
parent724b007c507832e7fbaf6b73b9ee2bb4f97af2c1 (diff)
stm32: Fix the STM32H743 mcu temp on SKR 3 (#5711)
Signed-off-by: Aaron DeLyser <bluwolf@gmail.com>
-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 ca149d3d6..00be6209e 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);
}