Skip to content

Commit c9188a7

Browse files
Fix EMCY reset
1 parent 3f739f4 commit c9188a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

canopen/emcy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self):
2222

2323
def on_emcy(self, can_id, data, timestamp):
2424
code, register, data = self.EMCY_STRUCT.unpack(data)
25-
if code & 0xFF == 0:
25+
if code & 0xFF00 == 0:
2626
# Error reset
2727
self.active = []
2828
for callback in self.callbacks:

0 commit comments

Comments
 (0)