fix serious bug! don't send NO-RESPONSE NAKs for messages sent by local node

This commit is contained in:
Kevin Hester 2021-05-03 08:39:29 +08:00
parent 4c1b7d4840
commit 6dc4471bec

View File

@ -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");