From 02d74345ca0ac82de3c27c9765ad6367ba19a14d Mon Sep 17 00:00:00 2001 From: bvernoux Date: Sun, 10 Apr 2016 19:27:44 +0200 Subject: [PATCH] bbio_uart set rthread to NULL when stop thread --- hydrabus/hydrabus_bbio_uart.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hydrabus/hydrabus_bbio_uart.c b/hydrabus/hydrabus_bbio_uart.c index 346794ee..4e9562c3 100644 --- a/hydrabus/hydrabus_bbio_uart.c +++ b/hydrabus/hydrabus_bbio_uart.c @@ -91,6 +91,7 @@ void bbio_mode_uart(t_hydra_console *con) { chThdTerminate(rthread); chThdWait(rthread); + rthread = NULL; } cprint(con, "\x01", 1); break;