From 6119f33f57eeb7b8527717c4398c1fcc93ee2ea7 Mon Sep 17 00:00:00 2001 From: K7ZVX Date: Wed, 6 May 2026 14:30:28 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Rename=20ACK=20callback=20to=20onAckNak?= =?UTF-8?q?=20=E2=80=94=20meshtastic=20lib=20filters=20ACKs=20for=20other?= =?UTF-8?q?=20names?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- meshai/connector.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meshai/connector.py b/meshai/connector.py index 4f953a2..2778b0a 100644 --- a/meshai/connector.py +++ b/meshai/connector.py @@ -304,7 +304,7 @@ class MeshConnector: ack_event = threading.Event() ack_success = [False] - def on_response(packet): + def onAckNak(packet): # Check if this is an ACK (not a NACK or error) routing = packet.get("decoded", {}).get("routing", {}) error_reason = routing.get("errorReason") @@ -326,7 +326,7 @@ class MeshConnector: destinationId=dest_num, channelIndex=channel, wantAck=True, - onResponse=on_response, + onResponse=onAckNak, ) else: self._interface.sendText( @@ -334,7 +334,7 @@ class MeshConnector: destinationId=BROADCAST_NUM, channelIndex=channel, wantAck=True, - onResponse=on_response, + onResponse=onAckNak, ) # Wait for ACK or timeout