mavlink: Send command long when component id is broadcast

Check for the broadcast systemd id to block forward of broadcast
commands.
This commit is contained in:
José Roberto de Souza
2017-07-10 17:33:25 -07:00
committed by Lorenz Meier
parent fc30f2906f
commit 9a05c5f137
+1 -1
View File
@@ -457,7 +457,7 @@ protected:
/* only send commands for other systems/components, don't forward broadcast commands */
if ((cmd.target_system != mavlink_system.sysid || cmd.target_component != mavlink_system.compid) &&
(cmd.target_component != MAV_COMP_ID_ALL)) {
(cmd.target_system != 0)) {
if (_mavlink->verbose()) {
PX4_INFO("sending command %d to %d/%d", cmd.command, cmd.target_system, cmd.target_component);