diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-05-23 10:09:45 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-23 10:09:45 +0000 |
| commit | e5c579d9fb6f984feabc17980d9ab156a49e3551 (patch) | |
| tree | 7ded664fdc0dcf82badb38e96e80abda93ad20d9 /examples | |
| parent | 4e2296e34458382be4b548fa10e5f6a782059e8d (diff) | |
| parent | 4e9206efb8fa49ad2ea0b5420db1d0e4cc22b6cc (diff) | |
Merge pull request #2985 from rumcake-rs/stm32-adc-anyadcchannel
stm32/adc: add AnyAdcChannel type
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32h7/src/bin/adc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h7/src/bin/adc.rs b/examples/stm32h7/src/bin/adc.rs index 0009103d1..e9a857a74 100644 --- a/examples/stm32h7/src/bin/adc.rs +++ b/examples/stm32h7/src/bin/adc.rs | |||
| @@ -51,7 +51,7 @@ async fn main(_spawner: Spawner) { | |||
| 51 | let mut vrefint_channel = adc.enable_vrefint(); | 51 | let mut vrefint_channel = adc.enable_vrefint(); |
| 52 | 52 | ||
| 53 | loop { | 53 | loop { |
| 54 | let vrefint = adc.read_internal(&mut vrefint_channel); | 54 | let vrefint = adc.read(&mut vrefint_channel); |
| 55 | info!("vrefint: {}", vrefint); | 55 | info!("vrefint: {}", vrefint); |
| 56 | let measured = adc.read(&mut p.PC0); | 56 | let measured = adc.read(&mut p.PC0); |
| 57 | info!("measured: {}", measured); | 57 | info!("measured: {}", measured); |
