Skip to content

Commit f9ae021

Browse files
committed
remove old implementation
1 parent 317d81c commit f9ae021

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

meshtastic/mesh_interface.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -469,15 +469,6 @@ 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-
# destination ids can either be integers or strings with a !prefix
474-
try:
475-
# sometimes the destinationId is actually an int as a string, so doing a type() check won't work
476-
int(destinationId)
477-
except ValueError:
478-
# only take the last 8 characters of the hexadecimal destinationId and force a ! prefix
479-
destinationId = f'!{destinationId[-8:]}'
480-
481472
if getattr(data, "SerializeToString", None):
482473
logging.debug(f"Serializing protobuf as data: {stripnl(data)}")
483474
data = data.SerializeToString()

0 commit comments

Comments
 (0)