From 24be0a8f2a298fd81ca83bb0c9d46fe36c54f45e Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Fri, 1 Dec 2023 16:38:53 -0600 Subject: [PATCH] both LEDs working! --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 73a3ecc..e8e7e0b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -222,6 +222,9 @@ mod app { write_lcd(&mut lcd, &mut delay, "Starting"); + heartbeat::spawn().unwrap(); + second_heartbeat::spawn().unwrap(); + ( Shared { delay }, Local { @@ -265,7 +268,7 @@ mod app { // Re-spawn this task after 1 second let one_and_one_half_second = - Duration::::from_ticks((ONE_SEC_TICKS as f32 * 1.5) as u64); - heartbeat::spawn_after(one_and_one_half_second).unwrap(); + Duration::::from_ticks((ONE_SEC_TICKS as f64*1.14)as u64); + second_heartbeat::spawn_after(one_and_one_half_second).unwrap(); } }