Skip to content
Snippets Groups Projects
Commit b43815d2 authored by Martin Teichmann's avatar Martin Teichmann Committed by Martin Teichmann
Browse files

always have a current_data in a sync group

parent 3b19e837
No related branches found
No related tags found
No related merge requests found
...@@ -350,6 +350,8 @@ class FastEtherCat(SimpleEtherCat): ...@@ -350,6 +350,8 @@ class FastEtherCat(SimpleEtherCat):
class SyncGroupBase: class SyncGroupBase:
missed_counter = 0 missed_counter = 0
current_data = None
def __init__(self, ec, devices, **kwargs): def __init__(self, ec, devices, **kwargs):
super().__init__(**kwargs) super().__init__(**kwargs)
self.ec = ec self.ec = ec
...@@ -409,8 +411,6 @@ class SyncGroup(SyncGroupBase): ...@@ -409,8 +411,6 @@ class SyncGroup(SyncGroupBase):
class FastSyncGroup(SyncGroupBase, XDP): class FastSyncGroup(SyncGroupBase, XDP):
license = "GPL" license = "GPL"
current_data = None
properties = ArrayMap() properties = ArrayMap()
def __init__(self, ec, devices, **kwargs): def __init__(self, ec, devices, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment