Skip to content

Commit

Permalink
GCS_MAVLink: allow cancelling of mission upload by sending MISSION_CL…
Browse files Browse the repository at this point in the history
…EAR_ALL
  • Loading branch information
peterbarker committed Aug 20, 2024
1 parent 21f6e5d commit ebc8a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/GCS_MAVLink/MissionItemProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void MissionItemProtocol::handle_mission_clear_all(const GCS_MAVLINK &_link,
const mavlink_message_t &msg)
{
bool success = true;
success = success && !receiving;
success = success && cancel_upload(_link, msg);
success = success && clear_all_items();
send_mission_ack(_link, msg, success ? MAV_MISSION_ACCEPTED : MAV_MISSION_ERROR);
}
Expand Down

0 comments on commit ebc8a71

Please sign in to comment.