redundant queue cleanup

This commit is contained in:
liquidraver
2026-03-05 18:13:14 +01:00
parent 2d4b0c0a67
commit 06aed018c3
5 changed files with 14 additions and 28 deletions
+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