redundant queue cleanup

This commit is contained in:
liquidraver committed 2026-03-05 18:13:14 +01:00
1 parent 2d4b0c0a67
commit 06aed018c3
5 files changed
+14 -28

No files matched your search

+2 -2
View File
@@ -1115,13 +1115,13 @@ void CompanionMesh::onRawDataRecv(mesh::Packet *packet)
uint32_t CompanionMesh::getRetransmitDelay(const mesh::Packet *packet)
{
uint32_t t = (_radio->getEstAirtimeFor(packet->getPathByteLen() + packet->payload_len + 2) * 0.5f);
return getRNG()->nextInt(0, 5 * t + 1);
return getRNG()->nextInt(0, 7 * t + 1);
}
uint32_t CompanionMesh::getDirectRetransmitDelay(const mesh::Packet *packet)
{
uint32_t t = (_radio->getEstAirtimeFor(packet->getPathByteLen() + packet->payload_len + 2) * 0.2f);
return getRNG()->nextInt(0, 5 * t + 1);
return getRNG()->nextInt(0, 7 * t + 1);
}
uint8_t CompanionMesh::getDutyCyclePercent() const