From bd3e58c41370c16cec477c102b507f14a25032b6 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 15 Apr 2024 19:45:07 +1000 Subject: [PATCH] GCS_MAVLink: mark as not receiving when too many items in MISSION_COUNT.count we left things in the "receiving" state, which would eventually lead to a timeout, rather than just failing instanenously with the correct code. --- libraries/GCS_MAVLink/MissionItemProtocol.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/GCS_MAVLink/MissionItemProtocol.cpp b/libraries/GCS_MAVLink/MissionItemProtocol.cpp index d29faaa7f6e8a..4e0ba9d16bc54 100644 --- a/libraries/GCS_MAVLink/MissionItemProtocol.cpp +++ b/libraries/GCS_MAVLink/MissionItemProtocol.cpp @@ -73,6 +73,8 @@ void MissionItemProtocol::handle_mission_count( // the upload count may have changed; free resources and // allocate them again: free_upload_resources(); + receiving = false; + link = nullptr; } if (packet.count > max_items()) {