From c1de346150e4f91bbeac68715768b0b8e1cad6d7 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 6 Jun 2020 23:54:09 +1000 Subject: [PATCH] GCS_MAVLink: avoid copying data twice in ftp transfers --- libraries/GCS_MAVLink/GCS_FTP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_FTP.cpp b/libraries/GCS_MAVLink/GCS_FTP.cpp index afaa52d94a..1e1d667d1d 100644 --- a/libraries/GCS_MAVLink/GCS_FTP.cpp +++ b/libraries/GCS_MAVLink/GCS_FTP.cpp @@ -123,7 +123,7 @@ void GCS_MAVLINK::send_ftp_replies(void) reply.chan, 0, reply.sysid, reply.compid, payload); - ftp.replies->pop(reply); + ftp.replies->pop(); ftp.last_send_ms = AP_HAL::millis(); } else { return;