From 7aff5e9ee5fea23296168124a9ddc3d77b7f778f Mon Sep 17 00:00:00 2001 From: GUVWAF Date: Wed, 2 Nov 2022 09:49:20 +0100 Subject: [PATCH] Unset wantAck if you set wantResponse for Admin --- meshtastic/node.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meshtastic/node.py b/meshtastic/node.py index c73d7a4..d1f9a83 100644 --- a/meshtastic/node.py +++ b/meshtastic/node.py @@ -607,10 +607,15 @@ class Node: if adminIndex == 0: # unless a special channel index was used, we want to use the admin index adminIndex = self.iface.localNode._getAdminChannelIndex() logging.debug(f'adminIndex:{adminIndex}') - + + # don't ask for an Ack if you are getting a Response + if wantResponse: + wantAck = False + else: + wantAck = True return self.iface.sendData(p, self.nodeNum, portNum=portnums_pb2.PortNum.ADMIN_APP, - wantAck=True, + wantAck=wantAck, wantResponse=wantResponse, onResponse=onResponse, channelIndex=adminIndex)