We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d38045f commit 6817066Copy full SHA for 6817066
1 file changed
canopen/sdo/client.py
@@ -25,6 +25,9 @@ class SdoClient(SdoBase):
25
#: Seconds to wait before sending a request, for rate limiting
26
PAUSE_BEFORE_SEND = 0.0
27
28
+ #: Seconds to wait after sending a request
29
+ PAUSE_AFTER_SEND = 0.1
30
+
31
def __init__(self, rx_cobid, tx_cobid, od):
32
"""
33
:param int rx_cobid:
@@ -53,7 +56,8 @@ def send_request(self, request):
53
56
if not retries_left:
54
57
raise
55
58
logger.info(str(e))
- time.sleep(0.1)
59
+ if self.PAUSE_AFTER_SEND:
60
+ time.sleep(self.PAUSE_AFTER_SEND)
61
else:
62
break
63
0 commit comments