update to comments

This commit is contained in:
Michael Gillett
2025-01-26 13:10:56 -05:00
parent efb848adf9
commit 5600ce92b0

View File

@@ -472,10 +472,10 @@ 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
# sometimes the destinationId is actually an 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
# only take the last 8 characters of the hexadecimal destinationId and force a ! prefix
destinationId = f'!{destinationId[-8:]}'
if getattr(data, "SerializeToString", None):