Position packets generated locally should be sent to the phone too (#1242)

* Position packets generated locally should be sent to the phone too
This commit is contained in:
joshpirihi
2022-02-27 02:37:23 +13:00
committed by GitHub
parent d542267e4a
commit d0fc836f0b
3 changed files with 27 additions and 14 deletions

View File

@@ -121,7 +121,9 @@ void PositionPlugin::sendOurPosition(NodeNum dest, bool wantReplies)
p->priority = MeshPacket_Priority_BACKGROUND;
prevPacketId = p->id;
service.sendToMesh(p);
//send to the mesh, and the phone
service.sendToMesh(p, RX_SRC_LOCAL, true);
}
int32_t PositionPlugin::runOnce()