mirror of https://github.com/ArduPilot/ardupilot
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:
parent
82edfc6237
commit
698f967b63
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue