GCS_MAVLink: avoid copying data twice in ftp transfers

This commit is contained in:
Peter Barker 2020-06-06 23:54:09 +10:00 committed by Andrew Tridgell
parent cdcdd5ce27
commit c1de346150
1 changed files with 1 additions and 1 deletions

View File

@ -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;