forked from Archive/PX4-Autopilot
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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue