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.
This commit is contained in:
Peter Barker 2024-04-15 19:45:07 +10:00 committed by Andrew Tridgell
parent 91374632f6
commit bd3e58c413

View File

@ -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()) {