diff options
Diffstat (limited to 'examples/stm32f1/src/bin/input_capture.rs')
| -rw-r--r-- | examples/stm32f1/src/bin/input_capture.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f1/src/bin/input_capture.rs b/examples/stm32f1/src/bin/input_capture.rs index 417830231..5e2dab9e6 100644 --- a/examples/stm32f1/src/bin/input_capture.rs +++ b/examples/stm32f1/src/bin/input_capture.rs | |||
| @@ -43,7 +43,7 @@ async fn main(spawner: Spawner) { | |||
| 43 | let mut ic = InputCapture::new(p.TIM2, None, None, Some(ch3), None, Irqs, khz(1000), Default::default()); | 43 | let mut ic = InputCapture::new(p.TIM2, None, None, Some(ch3), None, Irqs, khz(1000), Default::default()); |
| 44 | 44 | ||
| 45 | loop { | 45 | loop { |
| 46 | info!("wait for risign edge"); | 46 | info!("wait for rising edge"); |
| 47 | ic.wait_for_rising_edge(Channel::Ch3).await; | 47 | ic.wait_for_rising_edge(Channel::Ch3).await; |
| 48 | 48 | ||
| 49 | let capture_value = ic.get_capture_value(Channel::Ch3); | 49 | let capture_value = ic.get_capture_value(Channel::Ch3); |
