From ba6a8080ea4641315b9b2de3c943b328cc97d124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Fran=C4=8De=C5=A1kin?= Date: Wed, 2 Sep 2020 22:34:00 +0200 Subject: [PATCH] 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. --- src/modules/mavlink/mavlink_receiver.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 13893b036d..fc57b9b529 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -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 */