feat: add selective flood retry rules

This commit is contained in:
mikecarper committed 2026-08-25 21:38:23 -07:00
1 parent 44eb8e4ab9
commit 8705e7f551
17 files changed
+597 -62

No files matched your search

+2
View File
@@ -9,6 +9,7 @@ Packet::Packet() {
path_len = 0;
payload_len = 0;
tx_cr = 0;
flood_retry_policy = FLOOD_RETRY_POLICY_DEFAULT;
}
bool Packet::isValidPathLen(uint8_t path_len) {
@@ -68,6 +69,7 @@ bool Packet::readFrom(const uint8_t src[], uint8_t len) {
uint8_t i = 0;
tx_cr = 0;
flood_retry_policy = FLOOD_RETRY_POLICY_DEFAULT;
header = src[i++];
if (getPayloadVer() > PAYLOAD_VER_1) return false;