Merge pull request #4359 from cbaechler/fix/stm32-l0-temperature-channel

embassy-stm32: Fix temperature ADC channel for STM32L0 series
This commit is contained in:
Dario Nieuwenhuis 2025-09-05 16:56:07 +02:00 committed by GitHub
commit 4b27444e1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,11 @@ pub struct Temperature;
impl AdcChannel<ADC1> for Temperature {}
impl super::SealedAdcChannel<ADC1> for Temperature {
fn channel(&self) -> u8 {
16
if cfg!(adc_l0) {
18
} else {
16
}
}
}