diff --git a/embassy-usb/src/class/cdc_acm.rs b/embassy-usb/src/class/cdc_acm.rs index f1066d2f2..2823e522e 100644 --- a/embassy-usb/src/class/cdc_acm.rs +++ b/embassy-usb/src/class/cdc_acm.rs @@ -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 { self.read_ep.read(data).await }