Skip to content

Commit

Permalink
plugin: ftp: Fix write offset calculation.
Browse files Browse the repository at this point in the history
Issue #128.
  • Loading branch information
vooon committed Sep 22, 2014
1 parent 81b3088 commit f112d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mavros/src/plugins/ftp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ class FTPPlugin : public MavRosPlugin {
const size_t bytes_to_copy = write_bytes_to_copy();
if (bytes_to_copy > 0) {
// More data to write
write_offset += bytes_to_copy;
write_offset += hdr->size;
send_write_command(bytes_to_copy);
}
else
Expand Down

0 comments on commit f112d24

Please sign in to comment.