OpenCyphal / libcanard

A compact implementation of the Cyphal/CAN protocol in C for high-integrity real-time embedded systems
http://opencyphal.org
MIT License
327 stars 192 forks source link

big little endian issue #218

Closed pioneerAlone closed 10 months ago

pioneerAlone commented 10 months ago

Hello ,

I am using this lib, what I encountered was an inconsistency problem between receiving and sending. Send :can id = 0x10606501 ,can data:f1 1 14 f8 ff be ad a0 rt_device_write send status = 16 (this was printed before call HW send) RECV :can_id:2 can data: e8 3 0 0 f0 33 0 20 ( this print after call HW interface).