diff options
| author | Bruno Bousquet <[email protected]> | 2024-05-29 09:14:05 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-29 09:14:05 -0400 |
| commit | a23fa8dcb2e22ed2d8bac15fd875dfe53af43eda (patch) | |
| tree | 2a81baa9d8164366c6d264de0bde97e4b3515509 /examples/stm32f1/src/bin/input_capture.rs | |
| parent | 7f4803ddaf8f6eeeec45418f23b092bff95222d2 (diff) | |
Apply suggestions from code review
Co-authored-by: Romain Reignier <[email protected]>
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); |
