Merge pull request #28 from timgunter/pubsub_node_update

Bug fix for pubsub meshtastic.node.updated not being sent
This commit is contained in:
Kevin Hester
2020-10-28 18:41:39 -07:00
committed by GitHub

View File

@@ -281,6 +281,7 @@ class MeshInterface:
self._nodesByNum[node["num"]] = node
if "user" in node: # Some nodes might not have user/ids assigned yet
self.nodes[node["user"]["id"]] = node
pub.sendMessage("meshtastic.node.updated", node=node, interface=self)
elif fromRadio.config_complete_id == MY_CONFIG_ID:
# we ignore the config_complete_id, it is unneeded for our stream API fromRadio.config_complete_id
self._connected()