From ae814dbe0872de43690b24819388bf5210b750d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=B6rner?= Date: Fri, 31 Mar 2017 12:40:52 +0200 Subject: [PATCH] send panic event --- V1/led5/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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<()>) {