FTP: Return bytes written in payload.

This commit is contained in:
Vladimir Ermakov 2014-10-05 13:23:57 +04:00
parent 56a9d16fc4
commit 0fbdb8d326
1 changed files with 2 additions and 5 deletions

View File

@ -508,11 +508,8 @@ MavlinkFTP::_workWrite(PayloadHeader* payload)
return kErrFailErrno; return kErrFailErrno;
} }
// need to decide how to indicate how much data was written payload->size = sizeof(uint32_t);
// current: old code set hdr->size *((uint32_t*)payload->data) = bytes_written;
payload->size = bytes_written;
//payload->size = sizeof(uint32_t);
//*((uint32_t*)payload->data) = bytes_written;
return kErrNone; return kErrNone;
} }