mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-06 03:29:17 +00:00
Merge branch 'master' into tft-gui-work
This commit is contained in:
commit
2dfe5a6ea8
@ -340,8 +340,11 @@ void RadioLibInterface::clampToLateRebroadcastWindow(NodeNum from, PacketId id)
|
|||||||
meshtastic_MeshPacket *p = txQueue.remove(from, id, true, false);
|
meshtastic_MeshPacket *p = txQueue.remove(from, id, true, false);
|
||||||
if (p) {
|
if (p) {
|
||||||
p->tx_after = millis() + getTxDelayMsecWeightedWorst(p->rx_snr);
|
p->tx_after = millis() + getTxDelayMsecWeightedWorst(p->rx_snr);
|
||||||
txQueue.enqueue(p);
|
if (txQueue.enqueue(p)) {
|
||||||
LOG_DEBUG("Move existing queued packet to the late rebroadcast window %dms from now", p->tx_after - millis());
|
LOG_DEBUG("Move existing queued packet to the late rebroadcast window %dms from now", p->tx_after - millis());
|
||||||
|
} else {
|
||||||
|
packetPool.release(p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user