collin80 / FlexCAN_Library

Arduino library for CAN on Teensy 3.1, 3.2, 3.5, and 3.6
MIT License
114 stars 42 forks source link

Fix RX Extended #8

Closed P1kachu closed 6 years ago

P1kachu commented 7 years ago

Hi,

I had a lot of troubles receiving extended messages, while sending them was ok. I fixed the problem with this change. I don't think that's the correct way to go, but I still wanted to have your opinion on why it didn't work at the beginning, and why this would solve the problem. 👍

Thank you!

Signed-off-by: Stanislas P1kachu Lejay p1kachu@lse.epita.fr

fabolhak commented 6 years ago

Hey, thank you for the great CAN library! I also had to change this in order to get it receiving extended frames. Additionally, the following line https://github.com/collin80/FlexCAN_Library/blob/master/FlexCAN.cpp#L1196 needs to be changed: if (!MBFilters[i].flags.extended) {