Skip to content

Commit 62b25cb

Browse files
Timer was set for 500 secs instead of 500 millis making the code hang (#13)
1 parent f0e9f43 commit 62b25cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lab02/src/bin/ex9.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async fn display_symbol(leds: &mut [Output<'_>; 3], morse_symbol: char) {
6767
// and it will panic if it tries to execute it.
6868
_ => panic!("Unknown mores code symbol {}", morse_symbol),
6969
}
70-
Timer::after_secs(500).await;
70+
Timer::after_millis(500).await;
7171

7272
// Turn off all the LEDs
7373
//

0 commit comments

Comments
 (0)