autowp / arduino-mcp2515

Arduino MCP2515 CAN interface library
MIT License
793 stars 279 forks source link

Fix messages are not read in correct order #46

Open jxltom opened 4 years ago

jxltom commented 4 years ago

Since two rx are enabled by rollover, currently the readed messages won't be in the correct order if received messages are very fast. This is because rx0 is always the first buffer to read. Refer https://www.microchip.com/forums/tm.aspx?m=620741.

This PR fixes this issue.