Skip to content

Commit

Permalink
When initializing all the CAN busses, make sure the are also cleared (#…
Browse files Browse the repository at this point in the history
…527)

Thanks to 4vanetten <4vanetten@gmail.com>
  • Loading branch information
robbederks committed May 6, 2020
1 parent c2bea78 commit 273e388
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions board/drivers/can.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 273e388

Please sign in to comment.