Skip to content

Commit

Permalink
GCS_MAVLink: mark as not receiving when too many items in MISSION_COU…
Browse files Browse the repository at this point in the history
…NT.count

we left things in the "receiving" state, which would eventually lead to a timeout, rather than just failing instanenously with the correct code.
  • Loading branch information
peterbarker authored and tridge committed May 13, 2024
1 parent 9137463 commit bd3e58c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/GCS_MAVLink/MissionItemProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit bd3e58c

Please sign in to comment.