Skip to content

Commit 421923a

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 421923a

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
@@ -79,6 +79,8 @@ void MissionItemProtocol::handle_mission_count(
7979
// FIXME: different items take up different storage space!
8080
send_mission_ack(_link, msg, MAV_MISSION_NO_SPACE);
8181
GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "Only %u items are supported", (unsigned)max_items());
82+
receiving = false;
83+
link = nullptr;
8284
return;
8385
}
8486

0 commit comments

Comments
 (0)