mirror of
https://github.com/meshtastic/python.git
synced 2026-01-08 15:57:57 -05:00
Update mesh_interface.py
This commit is contained in:
@@ -469,6 +469,11 @@ class MeshInterface: # pylint: disable=R0902
|
||||
and can be used to track future message acks/naks.
|
||||
"""
|
||||
|
||||
# issue 464: allow for 0x prefix in destinationId for hex values
|
||||
if type(destinationId) == str:
|
||||
destinationId = destinationId.replace('0x', '!')
|
||||
logging.debug(f'destinationId: {destinationId}')
|
||||
|
||||
if getattr(data, "SerializeToString", None):
|
||||
logging.debug(f"Serializing protobuf as data: {stripnl(data)}")
|
||||
data = data.SerializeToString()
|
||||
|
||||
Reference in New Issue
Block a user