We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60aca50 commit e07e01eCopy full SHA for e07e01e
pymodbus/server/sync.py
@@ -58,14 +58,14 @@ def execute(self, request):
58
59
:param request: The decoded request message
60
"""
61
+ broadcast = False
62
try:
63
if self.server.broadcast_enable and request.unit_id == 0:
64
broadcast = True
65
# if broadcasting then execute on all slave contexts, note response will be ignored
66
for unit_id in self.server.context.slaves():
67
response = request.execute(self.server.context[unit_id])
68
else:
- broadcast = False
69
context = self.server.context[request.unit_id]
70
response = request.execute(context)
71
except NoSuchSlaveException as ex:
0 commit comments