mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-11 23:52:14 +00:00
parent
e03a2f8f7f
commit
b398f31b64
@ -82,7 +82,7 @@ int MeshService::handleFromRadio(const meshtastic_MeshPacket *mp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
printPacket("Forwarding to phone", mp);
|
printPacket("Forwarding to phone", mp);
|
||||||
sendToPhone((meshtastic_MeshPacket *)mp);
|
sendToPhone(packetPool.allocCopy(*mp));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -231,7 +231,7 @@ void MeshService::sendToMesh(meshtastic_MeshPacket *p, RxSource src, bool ccToPh
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ccToPhone) {
|
if (ccToPhone) {
|
||||||
sendToPhone(p);
|
sendToPhone(packetPool.allocCopy(*p));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,9 +262,8 @@ void MeshService::sendToPhone(meshtastic_MeshPacket *p)
|
|||||||
releaseToPool(d);
|
releaseToPool(d);
|
||||||
}
|
}
|
||||||
|
|
||||||
meshtastic_MeshPacket *copied = packetPool.allocCopy(*p);
|
perhapsDecode(p);
|
||||||
perhapsDecode(copied);
|
assert(toPhoneQueue.enqueue(p, 0));
|
||||||
assert(toPhoneQueue.enqueue(copied, 0));
|
|
||||||
fromNum++;
|
fromNum++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user