Skip to content

Commit 273e388

Browse files
authored
When initializing all the CAN busses, make sure the are also cleared (#527)
Thanks to 4vanetten <4vanetten@gmail.com>
1 parent c2bea78 commit 273e388

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

board/drivers/can.h

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ bool can_set_speed(uint8_t can_number) {
165165
void can_init_all(void) {
166166
bool ret = true;
167167
for (uint8_t i=0U; i < CAN_MAX; i++) {
168+
can_clear(can_queues[i]);
168169
ret &= can_init(i);
169170
}
170171
UNUSED(ret);

0 commit comments

Comments
 (0)