stm32: Fix the STM32H743 mcu temp on SKR 3 (#5711)

Signed-off-by: Aaron DeLyser <bluwolf@gmail.com>
This commit is contained in:
adelyser 2022-08-19 14:42:20 -04:00 committed by GitHub
parent 724b007c50
commit 9e4994cbdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ gpio_adc_setup(uint32_t pin)
} }
if (pin == ADC_TEMPERATURE_PIN) { if (pin == ADC_TEMPERATURE_PIN) {
ADC3_COMMON->CCR = ADC_CCR_TSEN; ADC3_COMMON->CCR |= ADC_CCR_TSEN;
} else { } else {
gpio_peripheral(pin, GPIO_ANALOG, 0); gpio_peripheral(pin, GPIO_ANALOG, 0);
} }