diff options
| author | sakumisu <[email protected]> | 2023-05-04 17:15:31 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2023-05-04 17:15:31 +0800 |
| commit | b439be24756a30b70cb4cb13c145432d71a69571 (patch) | |
| tree | 34f73470ac52ea06aa4d981cc051149dcc3704fb | |
| parent | 3aeadb3046ce133f1bf133a162c9ee380e82b3fc (diff) | |
fix typo
| -rw-r--r-- | port/dwc2/usb_dc_dwc2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/port/dwc2/usb_dc_dwc2.c b/port/dwc2/usb_dc_dwc2.c index 6953e550..458550e3 100644 --- a/port/dwc2/usb_dc_dwc2.c +++ b/port/dwc2/usb_dc_dwc2.c @@ -931,7 +931,7 @@ int usbd_ep_start_read(const uint8_t ep, uint8_t *data, uint32_t data_len) if (data_len > g_dwc2_udc.out_ep[ep_idx].ep_mps) { data_len = g_dwc2_udc.out_ep[ep_idx].ep_mps; } - g_dwc2_udc.in_ep[ep_idx].xfer_len = data_len; + g_dwc2_udc.out_ep[ep_idx].xfer_len = data_len; USB_OTG_OUTEP(ep_idx)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); USB_OTG_OUTEP(ep_idx)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & data_len); } else { |
