When initializing all the CAN busses, make sure the are also cleared (#527)

Thanks to 4vanetten <4vanetten@gmail.com>
master
robbederks 2020-05-06 11:39:44 -07:00 committed by GitHub
parent c2bea78f6d
commit 273e3882fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);