aboutsummaryrefslogtreecommitdiffstats
path: root/usbh/src/pipe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'usbh/src/pipe.rs')
-rw-r--r--usbh/src/pipe.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/usbh/src/pipe.rs b/usbh/src/pipe.rs
index d431e06..c33a3a2 100644
--- a/usbh/src/pipe.rs
+++ b/usbh/src/pipe.rs
@@ -249,7 +249,9 @@ impl Pipe<'_, '_> {
// TODO: honestly, this is probably a panic condition,
// since whatever's in DataBuf.ptr is totally
// invalid. Alternately, this function should be declared
- // `unsafe`.
+ // `unsafe`. OR! Make the function take a mutable slice of
+ // u8, and leave it up to the caller to figure out how to
+ // deal with short packets.
Err(PipeErr::ShortPacket)
} else {
Ok(bytes_received)