You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
EMCY is defined to have a total of 8 data bytes, 5 of them "device specific".
Other sources confirm that EMCY must have exactly 8 bytes, with 5 manufacturer specific bytes.
Nonetheless, one of my devices sends a 5-byte EMCY, with two bytes in the device-specific data block.
This causes the line "unpack requires a buffer of 8 bytes" to appear in the terminal.
Timestamp: 1763198285.325304 ID: 0fe S Rx DL: 2 30 81I've traced the error to https://github.com/canopen-python/canopen/blob/master/canopen/emcy.py#L13.
Would you accept a PR that changes that code to allow non-5-byte manufacturer data?
Beta Was this translation helpful? Give feedback.
All reactions