mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-01 14:20:33 +00:00
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:
commit
4b27444e1c
@ -66,9 +66,13 @@ pub struct Temperature;
|
||||
impl AdcChannel<ADC1> for Temperature {}
|
||||
impl super::SealedAdcChannel<ADC1> for Temperature {
|
||||
fn channel(&self) -> u8 {
|
||||
if cfg!(adc_l0) {
|
||||
18
|
||||
} else {
|
||||
16
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'d, T: Instance> Adc<'d, T> {
|
||||
pub fn new(
|
||||
|
Loading…
x
Reference in New Issue
Block a user