diff options
| -rw-r--r-- | embassy-usb-synopsys-otg/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-usb-synopsys-otg/src/lib.rs b/embassy-usb-synopsys-otg/src/lib.rs index 44b2bd093..fc4428b54 100644 --- a/embassy-usb-synopsys-otg/src/lib.rs +++ b/embassy-usb-synopsys-otg/src/lib.rs | |||
| @@ -357,7 +357,7 @@ impl<'d, const MAX_EP_COUNT: usize> Driver<'d, MAX_EP_COUNT> { | |||
| 357 | ); | 357 | ); |
| 358 | 358 | ||
| 359 | if D::dir() == Direction::Out { | 359 | if D::dir() == Direction::Out { |
| 360 | if self.ep_out_buffer_offset + max_packet_size as usize >= self.ep_out_buffer.len() { | 360 | if self.ep_out_buffer_offset + max_packet_size as usize > self.ep_out_buffer.len() { |
| 361 | error!("Not enough endpoint out buffer capacity"); | 361 | error!("Not enough endpoint out buffer capacity"); |
| 362 | return Err(EndpointAllocError); | 362 | return Err(EndpointAllocError); |
| 363 | } | 363 | } |
