Skip to content

Commit

Permalink
Merge pull request #1807 from scoutdi/fix-bitwise-comparison
Browse files Browse the repository at this point in the history
mavros_extras: Fix a comparison that shouldn't be bitwise
  • Loading branch information
vooon committed Nov 30, 2022
2 parents 9b793d1 + 1e841f0 commit 87a220a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mavros_extras/src/plugins/guided_target.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class GuidedTargetPlugin : public plugin::PluginBase,

/* publish target */

if (pose->pose.position.x != arr[0] | pose->pose.position.y != arr[1]) {
if (pose->pose.position.x != arr[0] || pose->pose.position.y != arr[1]) {
setpointg_pub.publish(pose);
}

Expand Down

0 comments on commit 87a220a

Please sign in to comment.