add the user as distinct message source

This commit is contained in:
a-f-G-U-C
2021-10-27 13:16:51 +00:00
committed by GitHub
parent e6b4ee8084
commit da9dd62a33
5 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -145,7 +145,7 @@ void Router::setReceivedMessage()
runASAP = true;
}
ErrorCode Router::sendLocal(MeshPacket *p)
ErrorCode Router::sendLocal(MeshPacket *p, RxSource src)
{
// No need to deliver externally if the destination is the local node
if (p->to == nodeDB.getNodeNum()) {
@@ -161,7 +161,7 @@ ErrorCode Router::sendLocal(MeshPacket *p)
// If we are sending a broadcast, we also treat it as if we just received it ourself
// this allows local apps (and PCs) to see broadcasts sourced locally
if (p->to == NODENUM_BROADCAST) {
handleReceived(p, RX_SRC_LOCAL);
handleReceived(p, src);
}
return send(p);