From 1dd57789569c2f4f3ecae3f351787ebfa0e1daac Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 11 Aug 2023 14:34:21 +1000 Subject: [PATCH] GCS_MAVLink: correct placement of AP_MAVLINK_MISSION_SET_CURRENT_ENABLED --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 85edf27e9b..7da6e9251e 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -637,7 +637,6 @@ MISSION_STATE GCS_MAVLINK::mission_state(const AP_Mission &mission) const return MISSION_STATE_UNKNOWN; } -#if AP_MAVLINK_MISSION_SET_CURRENT_ENABLED void GCS_MAVLINK::send_mission_current(const class AP_Mission &mission, uint16_t seq) { auto num_commands = mission.num_commands(); @@ -656,6 +655,7 @@ void GCS_MAVLINK::send_mission_current(const class AP_Mission &mission, uint16_t mission_mode); // mission_mode } +#if AP_MAVLINK_MISSION_SET_CURRENT_ENABLED /* handle a MISSION_SET_CURRENT mavlink packet