diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-09-05 16:56:07 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-05 16:56:07 +0200 |
| commit | 4b27444e1cd8f56ec620a75275c22846b7f782d1 (patch) | |
| tree | 4f538491b42c03dcb3ef2da5261c533426c552f9 | |
| parent | 84f225433275382cd3387eb6cfe61ad2b49b7a2a (diff) | |
| parent | 02829f5e4b8340bff35621af47d5d91b9860e96e (diff) | |
Merge pull request #4359 from cbaechler/fix/stm32-l0-temperature-channel
embassy-stm32: Fix temperature ADC channel for STM32L0 series
| -rw-r--r-- | embassy-stm32/src/adc/v1.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/embassy-stm32/src/adc/v1.rs b/embassy-stm32/src/adc/v1.rs index 7fe502da0..d09374876 100644 --- a/embassy-stm32/src/adc/v1.rs +++ b/embassy-stm32/src/adc/v1.rs | |||
| @@ -66,7 +66,11 @@ pub struct Temperature; | |||
| 66 | impl AdcChannel<ADC1> for Temperature {} | 66 | impl AdcChannel<ADC1> for Temperature {} |
| 67 | impl super::SealedAdcChannel<ADC1> for Temperature { | 67 | impl super::SealedAdcChannel<ADC1> for Temperature { |
| 68 | fn channel(&self) -> u8 { | 68 | fn channel(&self) -> u8 { |
| 69 | 16 | 69 | if cfg!(adc_l0) { |
| 70 | 18 | ||
| 71 | } else { | ||
| 72 | 16 | ||
| 73 | } | ||
| 70 | } | 74 | } |
| 71 | } | 75 | } |
| 72 | 76 | ||
