Skip to content

Commit c086b63

Browse files
committed
Update mesh_interface.py
1 parent 6ec506f commit c086b63

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

meshtastic/mesh_interface.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,11 @@ def sendData(
469469
and can be used to track future message acks/naks.
470470
"""
471471

472+
# issue 464: allow for 0x prefix in destinationId for hex values
473+
if type(destinationId) == str:
474+
destinationId = destinationId.replace('0x', '!')
475+
logging.debug(f'destinationId: {destinationId}')
476+
472477
if getattr(data, "SerializeToString", None):
473478
logging.debug(f"Serializing protobuf as data: {stripnl(data)}")
474479
data = data.SerializeToString()

0 commit comments

Comments
 (0)