CAN libraries potentially needs fix

Hey,

I’m playing with endpoint and tutorial CAN code doesn’t work with exception “Data length cannot exceed 64 bytes.”
Further investigation lead to CanMessage.ctor L168 - “this.data = new byte[64];”
And CanRaw.WriteFrame L50 - “if (data.Length > 8)”

Basically if not canFd is used exception is hit all the time. CanMessage has length property which is set correctly from ctor. But that property is not used in CanRaw class.

Thanks. We will check. Could you add this to github issue?

Created. Thank You

1 Like