diff options
-rw-r--r-- | src/pipe.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pipe.rs b/src/pipe.rs index 84e4435..60b2056 100644 --- a/src/pipe.rs +++ b/src/pipe.rs @@ -244,8 +244,7 @@ impl Pipe<'_, '_> { nak_limit: usize, millis: &dyn Fn() -> usize, ) -> Result<usize, PipeErr> { - // TODO: pull this from pipe descriptor for this addr/ep. - let packet_size = 8; + let packet_size = ep.max_packet_size() as isize; trace!("p{}: Should IN for {}b.", self.num, buf.len()); self.desc.bank0.pcksize.modify(|_, w| { |