diff --git a/src/modules/mavlink/mavlink_main.cpp b/src/modules/mavlink/mavlink_main.cpp index c0acd87bc0..43335732fd 100644 --- a/src/modules/mavlink/mavlink_main.cpp +++ b/src/modules/mavlink/mavlink_main.cpp @@ -532,7 +532,7 @@ Mavlink::forward_message(const mavlink_message_t *msg, Mavlink *self) // Broadcast or addressing this system and not trying to talk // to the autopilot component -> pass on to other components if ((target_system_id == 0 || target_system_id == self->get_system_id()) - && (target_component_id == 0 || target_component_id != self->get_component_id())) { + && (target_component_id == 0 || target_component_id != self->get_component_id())) { inst->pass_message(msg); }