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:
Matej Frančeškin
2020-09-02 22:34:00 +02:00
committed by Daniel Agar
parent 26e8c231b0
commit ba6a8080ea
-1
View File
@@ -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 */