feat: add selective flood retry rules
This commit is contained in:
1 parent
65e40ff05f
commit
605b245eb5
17 files changed
+597
-62
No files matched your search
@@ -494,6 +494,7 @@ bool Dispatcher::tryParsePacket(Packet* pkt, const uint8_t* raw, int len) {
|
||||
int i = 0;
|
||||
|
||||
pkt->tx_cr = 0;
|
||||
pkt->flood_retry_policy = FLOOD_RETRY_POLICY_DEFAULT;
|
||||
pkt->header = raw[i++];
|
||||
if (pkt->getPayloadVer() > PAYLOAD_VER_1) {
|
||||
MESH_DEBUG_PRINTLN("%s Dispatcher::checkRecv(): unsupported packet version", getLogDateTime());
|
||||
@@ -725,6 +726,7 @@ Packet* Dispatcher::obtainNewPacket() {
|
||||
pkt->payload_len = pkt->path_len = 0;
|
||||
pkt->_snr = 0;
|
||||
pkt->tx_cr = 0;
|
||||
pkt->flood_retry_policy = FLOOD_RETRY_POLICY_DEFAULT;
|
||||
}
|
||||
return pkt;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user