Logic Late-Fix to the last PR

This commit is contained in:
Thomas Göttgens 2023-03-29 15:14:48 +02:00 committed by GitHub
parent 26d18244f0
commit 2edc35d34b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,9 +173,10 @@ ErrorCode Router::sendLocal(meshtastic_MeshPacket *p, RxSource src)
handleReceived(p, src); handleReceived(p, src);
} }
if (p->channel) // don't override if a channel was requested if (!p->channel) { // don't override if a channel was requested
p->channel = nodeDB.getNodeChannel(p->to); p->channel = nodeDB.getNodeChannel(p->to);
LOG_DEBUG("localSend to channel %d\n", p->channel); LOG_DEBUG("localSend to channel %d\n", p->channel);
}
return send(p); return send(p);
} }