Skip to content

Commit

Permalink
add remote nodes to network for master node
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Dec 13, 2023
1 parent 594d4fc commit 7f33c31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions olaf/_internals/master_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def _restart_network(self):
self._network.subscribe(0x80 + od.node_id, self._on_emergency)
self._network.subscribe(0x700 + od.node_id, self._on_heartbeat)

for remote_node in self._remote_nodes.values():
self._network.add_node(remote_node)

def _on_heartbeat(self, cob_id: int, data: bytes, timestamp: float):
"""Callback on node hearbeat messages."""

Expand Down

0 comments on commit 7f33c31

Please sign in to comment.