From e4120c848c2a82356f6ba88e70ddd6726548887c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 16 Jan 2019 11:22:06 +1100 Subject: [PATCH] GCS_MAVLink: correct payload space check for mission requests --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 8f418e7ecc..1d386413d2 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -851,7 +851,7 @@ bool GCS_MAVLINK::handle_mission_item(mavlink_message_t *msg, AP_Mission &missio } else { waypoint_timelast_request = AP_HAL::millis(); // if we have enough space, then send the next WP request immediately - if (HAVE_PAYLOAD_SPACE(chan, MISSION_ITEM)) { + if (HAVE_PAYLOAD_SPACE(chan, MISSION_REQUEST)) { queued_mission_request_send(); } else { send_message(MSG_NEXT_MISSION_REQUEST);