Skip to content

Commit

Permalink
Fix EMCY reset
Browse files Browse the repository at this point in the history
  • Loading branch information
christiansandberg committed Oct 15, 2017
1 parent 3f739f4 commit c9188a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canopen/emcy.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self):

def on_emcy(self, can_id, data, timestamp):
code, register, data = self.EMCY_STRUCT.unpack(data)
if code & 0xFF == 0:
if code & 0xFF00 == 0:
# Error reset
self.active = []
for callback in self.callbacks:
Expand Down

0 comments on commit c9188a7

Please sign in to comment.