diff --git a/V1/led5/src/main.rs b/V1/led5/src/main.rs index 69d589a..c400870 100644 --- a/V1/led5/src/main.rs +++ b/V1/led5/src/main.rs @@ -91,8 +91,9 @@ fn main() { watchdog.join().expect("Watchdog thread paniced"); } -fn watchdog(thread: JoinHandle<()>, sdone: chan::Sender<()>) { +fn watchdog(thread: JoinHandle<()>, spanic: chan::Sender<()>) { thread.join().expect("Thread paniced"); + spanic.send(()); } fn run(rdone: chan::Receiver<()>) {