Skip to content

Arduino_CAN library: Calling available() twice in a row returns gives different results #535

@lukasbraendli

Description

@lukasbraendli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions