From 2edc35d34ba0b36ada3de9bab9bea941711d1428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Wed, 29 Mar 2023 15:14:48 +0200 Subject: [PATCH] Logic Late-Fix to the last PR --- src/mesh/Router.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesh/Router.cpp b/src/mesh/Router.cpp index db0509aca..b3aee4e7d 100644 --- a/src/mesh/Router.cpp +++ b/src/mesh/Router.cpp @@ -173,9 +173,10 @@ ErrorCode Router::sendLocal(meshtastic_MeshPacket *p, RxSource 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); - LOG_DEBUG("localSend to channel %d\n", p->channel); + LOG_DEBUG("localSend to channel %d\n", p->channel); + } return send(p); }