mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 10:42:08 +00:00
Merge pull request #1824 from meshtastic/caveman99-patch1
Dont retransmit packets destined for ourselves.
This commit is contained in:
commit
43c9ab1faa
@ -63,7 +63,7 @@ bool ReliableRouter::shouldFilterReceived(MeshPacket *p)
|
|||||||
sendAckNak(Routing_Error_NONE, getFrom(p), p->id, p->channel);
|
sendAckNak(Routing_Error_NONE, getFrom(p), p->id, p->channel);
|
||||||
DEBUG_MSG("acking a repeated want_ack packet\n");
|
DEBUG_MSG("acking a repeated want_ack packet\n");
|
||||||
}
|
}
|
||||||
} else if (wasSeenRecently(p, false) && p->hop_limit == HOP_RELIABLE && !MeshModule::currentReply) {
|
} else if (wasSeenRecently(p, false) && p->hop_limit == HOP_RELIABLE && !MeshModule::currentReply && p->to != nodeDB.getNodeNum()) {
|
||||||
// retransmission on broadcast has hop_limit still equal to HOP_RELIABLE
|
// retransmission on broadcast has hop_limit still equal to HOP_RELIABLE
|
||||||
DEBUG_MSG("Resending implicit ack for a repeated floodmsg\n");
|
DEBUG_MSG("Resending implicit ack for a repeated floodmsg\n");
|
||||||
MeshPacket *tosend = packetPool.allocCopy(*p);
|
MeshPacket *tosend = packetPool.allocCopy(*p);
|
||||||
|
Loading…
Reference in New Issue
Block a user