From 5c34e36bec240015d7a13373ec8c5e60aa549462 Mon Sep 17 00:00:00 2001 From: prokrypt Date: Thu, 6 Jul 2023 04:43:21 -0700 Subject: [PATCH] Temporary band-aid to address mesh [un]reliability after queue "fix" (#2588) --- src/mesh/FloodingRouter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesh/FloodingRouter.cpp b/src/mesh/FloodingRouter.cpp index 171199277..83bd0e325 100644 --- a/src/mesh/FloodingRouter.cpp +++ b/src/mesh/FloodingRouter.cpp @@ -21,7 +21,12 @@ bool FloodingRouter::shouldFilterReceived(const meshtastic_MeshPacket *p) { if (wasSeenRecently(p)) { // Note: this will also add a recent packet record printPacket("Ignoring incoming msg, because we've already seen it", p); - Router::cancelSending(p->from, p->id); // cancel rebroadcast of this message *if* there was already one + if (config.device.role != meshtastic_Config_DeviceConfig_Role_ROUTER && + config.device.role != meshtastic_Config_DeviceConfig_Role_ROUTER_CLIENT && + config.device.role != meshtastic_Config_DeviceConfig_Role_REPEATER) { + // cancel rebroadcast of this message *if* there was already one, unless we're a router/repeater! + Router::cancelSending(p->from, p->id); + } return true; }