From 82ba95833b4c2e40df8817859fceaaebe8289957 Mon Sep 17 00:00:00 2001 From: GUVWAF <78759985+GUVWAF@users.noreply.github.com> Date: Sat, 1 Oct 2022 15:18:25 +0200 Subject: [PATCH] strcmp returns zero if strings are equal (#1736) Co-authored-by: Ben Meadors --- src/mesh/MeshModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/MeshModule.cpp b/src/mesh/MeshModule.cpp index a4ef25d2a..63f2a4358 100644 --- a/src/mesh/MeshModule.cpp +++ b/src/mesh/MeshModule.cpp @@ -112,7 +112,7 @@ void MeshModule::callPlugins(const MeshPacket &mp, RxSource src) bool rxChannelOk = !pi.boundChannel || (mp.from == 0) || !ch || strlen(ch->settings.name) > 0 || - strcmp(ch->settings.name, pi.boundChannel); + (strcmp(ch->settings.name, pi.boundChannel) == 0); if (!rxChannelOk) { // no one should have already replied!