diff options
| author | Dániel Buga <[email protected]> | 2024-04-26 18:13:10 +0200 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2024-04-26 18:13:15 +0200 |
| commit | 50aefb417496f45a6c79abf2ac1737d737feb9ba (patch) | |
| tree | 10a6adc3f57933e90277df85c487bedfaadea62f /embassy-stm32 | |
| parent | 91c42e0b9e118d88a51fecf07dc3f41b61c0762c (diff) | |
Hide the Dir trait
Diffstat (limited to 'embassy-stm32')
| -rw-r--r-- | embassy-stm32/src/usb/otg.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/usb/otg.rs b/embassy-stm32/src/usb/otg.rs index c59aae87f..0525718e1 100644 --- a/embassy-stm32/src/usb/otg.rs +++ b/embassy-stm32/src/usb/otg.rs | |||
| @@ -161,7 +161,7 @@ impl<'d, T: Instance> embassy_usb_driver::Driver<'d> for Driver<'d, T> { | |||
| 161 | max_packet_size: u16, | 161 | max_packet_size: u16, |
| 162 | interval_ms: u8, | 162 | interval_ms: u8, |
| 163 | ) -> Result<Self::EndpointIn, EndpointAllocError> { | 163 | ) -> Result<Self::EndpointIn, EndpointAllocError> { |
| 164 | self.inner.alloc_endpoint(ep_type, max_packet_size, interval_ms) | 164 | self.inner.alloc_endpoint_in(ep_type, max_packet_size, interval_ms) |
| 165 | } | 165 | } |
| 166 | 166 | ||
| 167 | fn alloc_endpoint_out( | 167 | fn alloc_endpoint_out( |
| @@ -170,7 +170,7 @@ impl<'d, T: Instance> embassy_usb_driver::Driver<'d> for Driver<'d, T> { | |||
| 170 | max_packet_size: u16, | 170 | max_packet_size: u16, |
| 171 | interval_ms: u8, | 171 | interval_ms: u8, |
| 172 | ) -> Result<Self::EndpointOut, EndpointAllocError> { | 172 | ) -> Result<Self::EndpointOut, EndpointAllocError> { |
| 173 | self.inner.alloc_endpoint(ep_type, max_packet_size, interval_ms) | 173 | self.inner.alloc_endpoint_out(ep_type, max_packet_size, interval_ms) |
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | fn start(self, control_max_packet_size: u16) -> (Self::Bus, Self::ControlPipe) { | 176 | fn start(self, control_max_packet_size: u16) -> (Self::Bus, Self::ControlPipe) { |
