tonton81 / FlexCAN_T4

FlexCAN (CAN 2.0 / CANFD) Library for Teensy 3.x and 4.0
https://forum.pjrc.com/threads/56035-FlexCAN_T4-FlexCAN-for-Teensy-4
MIT License
196 stars 66 forks source link

Overun error doubt #18

Closed antodom closed 3 years ago

antodom commented 3 years ago

Hi there,

Are there any way using this library of knowing when a CAN frame has been overwritten due to an overrun error?.

Thanks in advance.

tonton81 commented 3 years ago

msg.overrun would return 1 if that was so. Unless you were polling, you shouldn't get overruns in interrupt mode

antodom commented 3 years ago

Hi there again,

Thanks, I was not aware of this flag in the message structure.