Skip to content

Commit efb848a

Browse files
committed
comments explaining logic
1 parent 0d86461 commit efb848a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

meshtastic/mesh_interface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ def sendData(
472472
# issue 464: allow for 0x prefix in destinationId for hex values
473473
# destination ids can either be integers or strings with a !prefix
474474
try:
475+
# sometimes the destinationId is actually a int as a string, so doing a type() check won't work
475476
int(destinationId)
476477
except ValueError:
477478
# only take the last 8 characters of the destinationId and force a ! prefix

0 commit comments

Comments
 (0)