Limit Meshtext messages to 15 total attempts

Stop on a matching forwarded echo and preserve lower saved retry settings. Keep scheduled beacons on their separate single-send path.
This commit is contained in:
mikecarper committed 2026-10-23 10:33:21 -07:00
1 parent 51adb8fe1e
commit 99eb24736f
8 files changed
+80 -16

No files matched your search

+7
View File
@@ -43,4 +43,11 @@ struct PendingFrame {
static constexpr unsigned DeliverySlots = 4;
static constexpr unsigned ChatDeliverySlots = DeliverySlots - 1;
// Text messages get at most 15 transmissions, including the original send.
// Lower saved flood retry counts still mean additional transmissions.
static constexpr uint8_t MaxMessageAttempts = 15;
constexpr uint8_t messageRetryLimit(uint8_t count) {
return count < MaxMessageAttempts ? count : MaxMessageAttempts - 1;
}
} } // namespace mesh::mt