GCS_MAVLink: Notify the maximum number of missions

Update libraries/GCS_MAVLink/MissionItemProtocol.cpp

Co-authored-by: WickedShell <Wicked.Shell.Scripts@gmail.com>

GCS_MAVLink: Notify the maximum number of missions
This commit is contained in:
murata 2020-11-28 23:44:45 +09:00 committed by Peter Barker
parent 82edfc6237
commit 698f967b63
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ void MissionItemProtocol::handle_mission_count(
if (packet.count > max_items()) {
// FIXME: different items take up different storage space!
send_mission_ack(_link, msg, MAV_MISSION_NO_SPACE);
GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "Only %u items are supported", (unsigned)max_items());
return;
}