mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
FTP: Return bytes written in payload.
This commit is contained in:
parent
56a9d16fc4
commit
0fbdb8d326
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user