aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32l4
diff options
context:
space:
mode:
authorAndres Vahter <[email protected]>2024-07-03 14:39:10 +0300
committerAndres Vahter <[email protected]>2024-07-03 15:20:31 +0300
commitf851081e09982a3edefd23082bb23143a0172464 (patch)
treede03c185f2aa3317cd413bab7fc9efde4581f480 /examples/stm32l4
parent914d7c7919a8eac88f474d658a8078272318731b (diff)
stm32 adc: introduce blocking_read
Diffstat (limited to 'examples/stm32l4')
-rw-r--r--examples/stm32l4/src/bin/adc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32l4/src/bin/adc.rs b/examples/stm32l4/src/bin/adc.rs
index 7a89334e0..c557ac6d7 100644
--- a/examples/stm32l4/src/bin/adc.rs
+++ b/examples/stm32l4/src/bin/adc.rs
@@ -23,7 +23,7 @@ fn main() -> ! {
23 let mut channel = p.PC0; 23 let mut channel = p.PC0;
24 24
25 loop { 25 loop {
26 let v = adc.read(&mut channel); 26 let v = adc.blocking_read(&mut channel);
27 info!("--> {}", v); 27 info!("--> {}", v);
28 } 28 }
29} 29}