mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 06:14:14 +08:00
mavlink: don't respond to MAV_CMD_REQUEST_MESSAGE if component doesn't match
PX4 is responding with NACK to MAV_CMD_REQUEST_MESSAGE from a GCS to payload-manager which confuses a GCS. PX4 shouldn't respond to commands that are not broadcasted or specificaly addressed to it.
This commit is contained in:
committed by
Daniel Agar
parent
26e8c231b0
commit
ba6a8080ea
@@ -336,7 +336,6 @@ MavlinkReceiver::evaluate_target_ok(int command, int target_system, int target_c
|
||||
|
||||
switch (command) {
|
||||
|
||||
case MAV_CMD_REQUEST_MESSAGE:
|
||||
case MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES:
|
||||
case MAV_CMD_REQUEST_PROTOCOL_VERSION:
|
||||
/* broadcast and ignore component */
|
||||
|
||||
Reference in New Issue
Block a user