mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 20:33:34 +08:00
FTP: Return bytes written in payload.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user