mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 15:14:45 +02:00
fix: Rename ACK callback to onAckNak — meshtastic lib filters ACKs for other names
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
34f894ea79
commit
6119f33f57
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue