GCS_MAVLink: correct placement of AP_MAVLINK_MISSION_SET_CURRENT_ENABLED

This commit is contained in:
Peter Barker 2023-08-11 14:34:21 +10:00 committed by Andrew Tridgell
parent 2c3ac2fa4e
commit 1dd5778956
1 changed files with 1 additions and 1 deletions

View File

@ -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