mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 11:10:52 +00:00
Stop retransmission for original packet
This commit is contained in:
@@ -71,7 +71,8 @@ void NextHopRouter::sniffReceived(const meshtastic_MeshPacket *p, const meshtast
|
|||||||
}
|
}
|
||||||
if (!isToUs(p)) {
|
if (!isToUs(p)) {
|
||||||
Router::cancelSending(p->to, p->decoded.request_id); // cancel rebroadcast for this DM
|
Router::cancelSending(p->to, p->decoded.request_id); // cancel rebroadcast for this DM
|
||||||
stopRetransmission(p->from, p->decoded.request_id); // stop retransmission for this packet
|
// stop retransmission for the original packet
|
||||||
|
stopRetransmission(p->to, p->decoded.request_id); // for original packet, from = to and id = request_id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user