From 7b6906ae3f14c17f1cd3828b9c6d98146c581a11 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 12 Mar 2014 15:24:30 +0900 Subject: [PATCH] Copter: integrate variable max num commands --- ArduCopter/GCS_Mavlink.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/GCS_Mavlink.pde b/ArduCopter/GCS_Mavlink.pde index 434e91207e..9b14bb0b89 100644 --- a/ArduCopter/GCS_Mavlink.pde +++ b/ArduCopter/GCS_Mavlink.pde @@ -1534,7 +1534,7 @@ mission_item_send_failed: } // start waypoint receiving - if (packet.count > AP_MISSION_MAX_COMMANDS) { + if (packet.count > mission.num_commands_max()) { // send NAK mavlink_msg_mission_ack_send(chan, msg->sysid, msg->compid, MAV_MISSION_NO_SPACE); break;