File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,9 @@ MavlinkFTP::_process_request(
141141 mavlink_file_transfer_protocol_t *last_reply = reinterpret_cast <mavlink_file_transfer_protocol_t *>(_last_reply);
142142 PayloadHeader *last_payload = reinterpret_cast <PayloadHeader *>(&last_reply->payload [0 ]);
143143
144- if (payload->seq_number + 1 == last_payload->seq_number ) {
144+ if (payload->seq_number + 1 == last_payload->seq_number
145+ && last_reply->target_system == target_system_id
146+ && last_reply->target_component == target_comp_id) {
145147 // this is the same request as the one we replied to last. It means the (n)ack got lost, and the GCS
146148 // resent the request
147149 mavlink_msg_file_transfer_protocol_send_struct (_mavlink.get_channel (), last_reply);
You can’t perform that action at this time.
0 commit comments