From 6dc4471bec1782f84e99fb6e15cd746eab99897c Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Mon, 3 May 2021 08:39:29 +0800 Subject: [PATCH] fix serious bug! don't send NO-RESPONSE NAKs for messages sent by local node --- src/mesh/MeshPlugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesh/MeshPlugin.cpp b/src/mesh/MeshPlugin.cpp index 1c14001f2..cd454ae0a 100644 --- a/src/mesh/MeshPlugin.cpp +++ b/src/mesh/MeshPlugin.cpp @@ -149,7 +149,9 @@ void MeshPlugin::callPlugins(const MeshPacket &mp) printPacket("Sending response", currentReply); service.sendToMesh(currentReply); currentReply = NULL; - } else { + } else if(mp.from != ourNodeNum) { + // Note: if the message started with the local node we don't want to send a no response reply + // No one wanted to reply to this requst, tell the requster that happened DEBUG_MSG("No one responded, send a nak\n");