mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Merge pull request #2413 from JomerDev/better-read_packet-doc
Add buffer size info to read_packet docs
This commit is contained in:
commit
49ee0564ed
@ -439,6 +439,7 @@ impl<'d, D: Driver<'d>> Receiver<'d, D> {
|
||||
}
|
||||
|
||||
/// Reads a single packet from the OUT endpoint.
|
||||
/// Must be called with a buffer large enough to hold max_packet_size bytes.
|
||||
pub async fn read_packet(&mut self, data: &mut [u8]) -> Result<usize, EndpointError> {
|
||||
self.read_ep.read(data).await
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user