Skip to content

Commit 826c7bb

Browse files
committed
Clear buffer before first use
1 parent e118f89 commit 826c7bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hal/transport/CAN/MyTransportCAN.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ bool transportInit(void)
6262
return false;
6363
}
6464
canInitialized=true;
65+
for (uint8_t i = 0; i < bufSize; i++) {
66+
_cleanSlot(i);
67+
}
6568
_initFilters();
6669
return true;
6770

0 commit comments

Comments
 (0)