Skip to content

Commit

Permalink
comments explaining logic
Browse files Browse the repository at this point in the history
  • Loading branch information
migillett committed Jan 26, 2025
1 parent 0d86461 commit efb848a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meshtastic/mesh_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ def sendData(
# issue 464: allow for 0x prefix in destinationId for hex values
# destination ids can either be integers or strings with a !prefix
try:
# sometimes the destinationId is actually a int as a string, so doing a type() check won't work
int(destinationId)
except ValueError:
# only take the last 8 characters of the destinationId and force a ! prefix
Expand Down

0 comments on commit efb848a

Please sign in to comment.