From c086b6372ec4880cd8381f94580410bc2a9f67ad Mon Sep 17 00:00:00 2001 From: Michael Gillett <51103663+migillett@users.noreply.github.com> Date: Sun, 26 Jan 2025 11:58:48 -0500 Subject: [PATCH] Update mesh_interface.py --- meshtastic/mesh_interface.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 57545c6..4c90969 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -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()