diff --git a/canopen/emcy.py b/canopen/emcy.py index 9d88753e..f193914d 100644 --- a/canopen/emcy.py +++ b/canopen/emcy.py @@ -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: