mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
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:
committed by
Lorenz Meier
parent
fc30f2906f
commit
9a05c5f137
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user