From ad8dbeab146b3d679428a3e17aea8a4248dcc4ba Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Fri, 29 Mar 2024 16:15:57 -0700 Subject: [PATCH] List unknown node IDs always with 8 hex digits, padded with 0s --- meshtastic/mesh_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 65678b4..f0c0c80 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -162,7 +162,7 @@ class MeshInterface: if not includeSelf and node["num"] == self.localNode.nodeNum: continue - row = {"N": 0, "User": f"UNK: {node['num']}", "ID": f"!{node['num']:x}"} + row = {"N": 0, "User": f"UNK: {node['num']}", "ID": f"!{node['num']:08x}"} user = node.get("user") if user: