From 273e3882fd237d0aa09175168aa81e55ab5756d1 Mon Sep 17 00:00:00 2001 From: robbederks Date: Wed, 6 May 2020 11:39:44 -0700 Subject: [PATCH] When initializing all the CAN busses, make sure the are also cleared (#527) Thanks to 4vanetten <4vanetten@gmail.com> --- board/drivers/can.h | 1 + 1 file changed, 1 insertion(+) diff --git a/board/drivers/can.h b/board/drivers/can.h index 5a63246b7511f5..3a6eeface9978f 100644 --- a/board/drivers/can.h +++ b/board/drivers/can.h @@ -165,6 +165,7 @@ bool can_set_speed(uint8_t can_number) { void can_init_all(void) { bool ret = true; for (uint8_t i=0U; i < CAN_MAX; i++) { + can_clear(can_queues[i]); ret &= can_init(i); } UNUSED(ret);