From efb848adf92780daf6e12bca19922165d65bf080 Mon Sep 17 00:00:00 2001 From: Michael Gillett <51103663+migillett@users.noreply.github.com> Date: Sun, 26 Jan 2025 12:58:18 -0500 Subject: [PATCH] comments explaining logic --- meshtastic/mesh_interface.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 1d3feb2..775907c 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -472,6 +472,7 @@ class MeshInterface: # pylint: disable=R0902 # 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