We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9ae021 commit 60f9dc6Copy full SHA for 60f9dc6
1 file changed
meshtastic/mesh_interface.py
@@ -892,8 +892,10 @@ def _sendPacket(
892
else:
893
our_exit("Warning: No myInfo found.")
894
# A simple hex style nodeid - we can parse this without needing the DB
895
- elif destinationId.startswith("!"):
896
- nodeNum = int(destinationId[1:], 16)
+ elif isinstance(destinationId, str) and len(destinationId) > 8:
+ # assuming some form of node id string such as !1234578 or 0x12345678
897
+ # always grab the last 8 items of the hexadecimal id str and parse to integer
898
+ nodeNum = int(destinationId[-8:], 16)
899
900
if self.nodes:
901
node = self.nodes.get(destinationId)
0 commit comments