Skip to content

Can not receive CAN packets with DLC=0 #4

Open
@balazsracz

Description

@balazsracz

The API for parsePacket is defined as returning 0 when there is no packet in the input buffer, and returning DLC when there is a packet to read in the input buffer. Therefore packets with DLC=0 will appear the same as when no packets have arrived.

As a consequence of this confusion, the callback onReceive will not be executed when a packet with DLC=0 arrives on the CAN-bus.

Packets with DLC=0 (no data payload bytes) are perfectly valid packets on a CAN-bus. They should be able to be sent to and received from the bus using this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions