Skip to content

Commit 90fc0b9

Browse files
committed
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.
1 parent e2d019f commit 90fc0b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/GCS_MAVLink/MissionItemProtocol.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ void MissionItemProtocol::handle_mission_count(
7373
// the upload count may have changed; free resources and
7474
// allocate them again:
7575
free_upload_resources();
76+
receiving = false;
77+
link = nullptr;
7678
}
7779

7880
if (packet.count > max_items()) {

0 commit comments

Comments
 (0)