strcmp returns zero if strings are equal (#1736)

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
GUVWAF 2022-10-01 15:18:25 +02:00 committed by GitHub
parent 28384df702
commit 82ba95833b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ void MeshModule::callPlugins(const MeshPacket &mp, RxSource src)
bool rxChannelOk = !pi.boundChannel || (mp.from == 0) || bool rxChannelOk = !pi.boundChannel || (mp.from == 0) ||
!ch || !ch ||
strlen(ch->settings.name) > 0 || strlen(ch->settings.name) > 0 ||
strcmp(ch->settings.name, pi.boundChannel); (strcmp(ch->settings.name, pi.boundChannel) == 0);
if (!rxChannelOk) { if (!rxChannelOk) {
// no one should have already replied! // no one should have already replied!