From ce16cf7ab147c09f464577313fbe5f87fea1d3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=B6rner?= Date: Fri, 31 Mar 2017 18:09:29 +0200 Subject: [PATCH] fixed watchdog --- V1/led5/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/V1/led5/src/main.rs b/V1/led5/src/main.rs index 9361091..193d6f4 100644 --- a/V1/led5/src/main.rs +++ b/V1/led5/src/main.rs @@ -91,9 +91,8 @@ fn main() { watchdog.join().expect("Watchdog thread paniced"); } -fn watchdog(thread: JoinHandle<()>, spanic: chan::Sender<()>) { +fn watchdog(thread: JoinHandle<()>, _spanic: chan::Sender<()>) { thread.join().expect("Thread paniced"); - spanic.send(()); } fn run(rdone: chan::Receiver<()>) {