mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-13 08:01:24 +00:00
fix hop limit defaults for android
This commit is contained in:
parent
c2122a6859
commit
6813a31895
@ -14,9 +14,10 @@ ErrorCode ReliableRouter::send(MeshPacket *p)
|
|||||||
{
|
{
|
||||||
if (p->want_ack) {
|
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
|
// 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)
|
if (p->to == NODENUM_BROADCAST && p->hop_limit == 0)
|
||||||
p->hop_limit = 1;
|
p->hop_limit = HOP_RELIABLE;
|
||||||
|
|
||||||
auto copy = packetPool.allocCopy(*p);
|
auto copy = packetPool.allocCopy(*p);
|
||||||
startRetransmission(copy);
|
startRetransmission(copy);
|
||||||
|
Loading…
Reference in New Issue
Block a user