Skip to content

Commit

Permalink
strcmp returns zero if strings are equal
Browse files Browse the repository at this point in the history
  • Loading branch information
GUVWAF committed Oct 1, 2022
1 parent a1bd5c9 commit 3669cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mesh/MeshModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 3669cf7

Please sign in to comment.