De-duplicate handling upgraded packet and rebroadcasting logic

This commit is contained in:
GUVWAF
2025-10-05 14:03:55 +02:00
parent 775595cb37
commit de6a02756d
5 changed files with 92 additions and 119 deletions

View File

@@ -94,7 +94,6 @@ bool PacketHistory::wasSeenRecently(const meshtastic_MeshPacket *p, bool withUpd
LOG_DEBUG("Packet History - Hop limit upgrade: packet 0x%08x from hop_limit=%d to hop_limit=%d", p->id, found->hop_limit,
p->hop_limit);
*wasUpgraded = true;
seenRecently = false; // Allow router processing but prevent duplicate app delivery
} else if (wasUpgraded) {
*wasUpgraded = false; // Initialize to false if not an upgrade
}