Skip to content

Commit

Permalink
GCS_MAVLink: fixed corruption of FTP reply component ID
Browse files Browse the repository at this point in the history
this led to not being able to do FTP transfers with
support.ardupilot.org unless MissionPlanner used the same component ID
as the support engineer GCS
  • Loading branch information
tridge authored and peterbarker committed Aug 14, 2023
1 parent f66fcb7 commit 0d97b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/GCS_MAVLink/GCS_FTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void GCS_MAVLINK::ftp_worker(void) {
}

// if it's a rerequest and we still have the last response then send it
if ((request.sysid == reply.sysid) && (request.compid = reply.compid) &&
if ((request.sysid == reply.sysid) && (request.compid == reply.compid) &&
(request.session == reply.session) && (request.seq_number + 1 == reply.seq_number)) {
ftp_push_replies(reply);
continue;
Expand Down

0 comments on commit 0d97b30

Please sign in to comment.