aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/hal_can.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src/hal_can.c')
-rw-r--r--os/hal/src/hal_can.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/src/hal_can.c b/os/hal/src/hal_can.c
index 173700afd..08cf7cc5e 100644
--- a/os/hal/src/hal_can.c
+++ b/os/hal/src/hal_can.c
@@ -129,6 +129,7 @@ void canStop(CANDriver *canp) {
/* The low level driver is stopped.*/
can_lld_stop(canp);
+ canp->config = NULL;
canp->state = CAN_STOP;
/* Threads waiting on CAN APIs are notified that the driver has been