diff options
author | Vladimir Ermakov <vooon341@gmail.com> | 2014-10-05 13:23:57 +0400 |
---|---|---|
committer | Vladimir Ermakov <vooon341@gmail.com> | 2014-10-05 13:23:57 +0400 |
commit | 0fbdb8d326e3a764fde840e426e093bae32bcba6 (patch) | |
tree | 66d98a097c33c0296d79ebf2ccf8e011577f8bce /src/modules/mavlink | |
parent | 56a9d16fc476e99106bda0627cc20f69e987fc6a (diff) | |
download | px4-firmware-0fbdb8d326e3a764fde840e426e093bae32bcba6.tar.gz px4-firmware-0fbdb8d326e3a764fde840e426e093bae32bcba6.tar.bz2 px4-firmware-0fbdb8d326e3a764fde840e426e093bae32bcba6.zip |
FTP: Return bytes written in payload.
Diffstat (limited to 'src/modules/mavlink')
-rw-r--r-- | src/modules/mavlink/mavlink_ftp.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/mavlink/mavlink_ftp.cpp b/src/modules/mavlink/mavlink_ftp.cpp index 4ed06561d..f17497aa8 100644 --- a/src/modules/mavlink/mavlink_ftp.cpp +++ b/src/modules/mavlink/mavlink_ftp.cpp @@ -508,11 +508,8 @@ MavlinkFTP::_workWrite(PayloadHeader* payload) return kErrFailErrno; } - // need to decide how to indicate how much data was written - // current: old code set hdr->size - payload->size = bytes_written; - //payload->size = sizeof(uint32_t); - //*((uint32_t*)payload->data) = bytes_written; + payload->size = sizeof(uint32_t); + *((uint32_t*)payload->data) = bytes_written; return kErrNone; } |