We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efb848a commit 5600ce9Copy full SHA for 5600ce9
1 file changed
meshtastic/mesh_interface.py
@@ -472,10 +472,10 @@ def sendData(
472
# issue 464: allow for 0x prefix in destinationId for hex values
473
# destination ids can either be integers or strings with a !prefix
474
try:
475
- # sometimes the destinationId is actually a int as a string, so doing a type() check won't work
+ # sometimes the destinationId is actually an int as a string, so doing a type() check won't work
476
int(destinationId)
477
except ValueError:
478
- # only take the last 8 characters of the destinationId and force a ! prefix
+ # only take the last 8 characters of the hexadecimal destinationId and force a ! prefix
479
destinationId = f'!{destinationId[-8:]}'
480
481
if getattr(data, "SerializeToString", None):
0 commit comments