diff options
| -rw-r--r-- | embassy-usb-synopsys-otg/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-usb-synopsys-otg/src/lib.rs b/embassy-usb-synopsys-otg/src/lib.rs index b90e059f6..f155f1522 100644 --- a/embassy-usb-synopsys-otg/src/lib.rs +++ b/embassy-usb-synopsys-otg/src/lib.rs | |||
| @@ -382,8 +382,8 @@ impl<'d, const MAX_EP_COUNT: usize> Driver<'d, MAX_EP_COUNT> { | |||
| 382 | } | 382 | } |
| 383 | 383 | ||
| 384 | let eps = match D::dir() { | 384 | let eps = match D::dir() { |
| 385 | Direction::Out => &mut self.ep_out, | 385 | Direction::Out => &mut self.ep_out[..self.instance.endpoint_count], |
| 386 | Direction::In => &mut self.ep_in, | 386 | Direction::In => &mut self.ep_in[..self.instance.endpoint_count], |
| 387 | }; | 387 | }; |
| 388 | 388 | ||
| 389 | // Find free endpoint slot | 389 | // Find free endpoint slot |
