Calling CAN1.available() after a message has come in returns true. Calling then CAN1.available() a second time without any other calls (i.e. CAN1.read()) returns false.
Exptected behaviour
CAN1.available() should return the number of frames ready to be read via read() without consuming or moving any data. Calling it N times without an intervening read() should return the same value each time.
Environment
- Board: Portenta C33
- Library: Arduino_CAN
- Bitrate: 125 kbps
- Only tested on CAN1 interface
- Arduino Renesas Portenta Boards version: 1.5.3
- Arduino IDE version: 2.3.8