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 bb6b528 commit db4e6d0Copy full SHA for db4e6d0
canopen/nmt.py
@@ -178,12 +178,14 @@ def start_node_guarding(self, period):
178
:param float period:
179
Period (in seconds) at which the node guarding should be advertised to the slave node.
180
"""
181
+ if self._node_guarding_producer : self.stop_node_guarding()
182
self._node_guarding_producer = self.network.send_periodic(0x700 + self.id, None, period, True)
183
184
def stop_node_guarding(self):
185
"""Stops the node guarding mechanism."""
186
if self._node_guarding_producer is not None:
187
self._node_guarding_producer.stop()
188
+ self._node_guarding_producer = None
189
190
191
class NmtSlave(NmtBase):
0 commit comments