From 6813a318950b635c487d069dbab4b5ed3df117e7 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 13 Mar 2021 09:27:44 +0800 Subject: [PATCH] fix hop limit defaults for android --- src/mesh/ReliableRouter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesh/ReliableRouter.cpp b/src/mesh/ReliableRouter.cpp index 28ad65bfa..131d5bb97 100644 --- a/src/mesh/ReliableRouter.cpp +++ b/src/mesh/ReliableRouter.cpp @@ -14,9 +14,10 @@ ErrorCode ReliableRouter::send(MeshPacket *p) { if (p->want_ack) { // If someone asks for acks on broadcast, we need the hop limit to be at least one, so that first node that receives our - // message will rebroadcast + // message will rebroadcast. But asking for hop_limit 0 in that context means the client app has no preference on hop counts + // and we want this message to get through the whole mesh, so use the default. if (p->to == NODENUM_BROADCAST && p->hop_limit == 0) - p->hop_limit = 1; + p->hop_limit = HOP_RELIABLE; auto copy = packetPool.allocCopy(*p); startRetransmission(copy);