From e1a466f2306a0a52bb2bfc3123e3fb39a57f0428 Mon Sep 17 00:00:00 2001 From: Leonard Hall Date: Sat, 2 Dec 2023 19:24:58 +1030 Subject: [PATCH] Copter: Fix AP_MISSION_NAV_PAYLOAD_PLACE_ENABLED --- ArduCopter/mode_auto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduCopter/mode_auto.cpp b/ArduCopter/mode_auto.cpp index 99449a2991dae..74bd78a15db91 100644 --- a/ArduCopter/mode_auto.cpp +++ b/ArduCopter/mode_auto.cpp @@ -1515,14 +1515,14 @@ bool ModeAuto::set_next_wp(const AP_Mission::Mission_Command& current_cmd, const switch (next_cmd.id) { case MAV_CMD_NAV_WAYPOINT: case MAV_CMD_NAV_LOITER_UNLIM: - case MAV_CMD_NAV_LOITER_TIME: #if AP_MISSION_NAV_PAYLOAD_PLACE_ENABLED - case MAV_CMD_NAV_PAYLOAD_PLACE: { + case MAV_CMD_NAV_PAYLOAD_PLACE: +#endif + case MAV_CMD_NAV_LOITER_TIME: { const Location dest_loc = loc_from_cmd(current_cmd, default_loc); const Location next_dest_loc = loc_from_cmd(next_cmd, dest_loc); return wp_nav->set_wp_destination_next_loc(next_dest_loc); } -#endif case MAV_CMD_NAV_SPLINE_WAYPOINT: { // get spline's location and next location from command and send to wp_nav Location next_dest_loc, next_next_dest_loc;