mirror of
https://github.com/meshtastic/python.git
synced 2026-01-02 21:07:55 -05:00
>= 8 instead of > 8
This commit is contained in:
@@ -892,7 +892,7 @@ class MeshInterface: # pylint: disable=R0902
|
||||
else:
|
||||
our_exit("Warning: No myInfo found.")
|
||||
# A simple hex style nodeid - we can parse this without needing the DB
|
||||
elif isinstance(destinationId, str) and len(destinationId) > 8:
|
||||
elif isinstance(destinationId, str) and len(destinationId) >= 8:
|
||||
# assuming some form of node id string such as !1234578 or 0x12345678
|
||||
# always grab the last 8 items of the hexadecimal id str and parse to integer
|
||||
nodeNum = int(destinationId[-8:], 16)
|
||||
|
||||
Reference in New Issue
Block a user