mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-22 22:41:21 +00:00
redundant queue cleanup
This commit is contained in:
1 parent
2d4b0c0a67
commit
06aed018c3
5 files changed
+14
-28
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user