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

remove the sleep from the poll loop

parent c2cd4289
No related branches found
No related tags found
2 merge requests!8Draft: move the index field to the end of packet,!7omnibus merge
Pipeline #96841 failed
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""The high-level API for EtherCAT loops""" """The high-level API for EtherCAT loops"""
from asyncio import ensure_future, gather, sleep, wait_for, TimeoutError from asyncio import ensure_future, gather, wait_for, TimeoutError
from struct import pack, unpack, calcsize, pack_into, unpack_from from struct import pack, unpack, calcsize, pack_into, unpack_from
from time import time from time import time
from .arraymap import ArrayMap, ArrayGlobalVarDesc from .arraymap import ArrayMap, ArrayGlobalVarDesc
...@@ -377,7 +377,6 @@ class SyncGroupBase: ...@@ -377,7 +377,6 @@ class SyncGroupBase:
print("didn't receive in time", self.missed_counter) print("didn't receive in time", self.missed_counter)
continue continue
data = self.update_devices(data) data = self.update_devices(data)
await sleep(0)
class SyncGroup(SyncGroupBase): class SyncGroup(SyncGroupBase):
......
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