Browse Source

GCS_MAVLink: avoid copying data twice in ftp transfers

c415-sdk
Peter Barker 5 years ago committed by Andrew Tridgell
parent
commit
c1de346150
  1. 2
      libraries/GCS_MAVLink/GCS_FTP.cpp

2
libraries/GCS_MAVLink/GCS_FTP.cpp

@ -123,7 +123,7 @@ void GCS_MAVLINK::send_ftp_replies(void) @@ -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;

Loading…
Cancel
Save