diff options
| author | Chen Leeren <[email protected]> | 2025-02-11 00:03:10 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-02-25 22:14:09 +0800 |
| commit | 374e6d6e4d747f154edae2af5fe005ea43a4178b (patch) | |
| tree | df4776b4209803c3efb06e0f076e9e0fc3c5b25e | |
| parent | c09ceb2537df014c38823c9f6174d06e78e1d73b (diff) | |
Fix ch58x fs ip send bug
| -rw-r--r-- | port/ch32/usb_ch58x_dc_usbfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/port/ch32/usb_ch58x_dc_usbfs.c b/port/ch32/usb_ch58x_dc_usbfs.c index d0c943a9..ce3cfe1f 100644 --- a/port/ch32/usb_ch58x_dc_usbfs.c +++ b/port/ch32/usb_ch58x_dc_usbfs.c @@ -533,6 +533,7 @@ USBD_IRQHandler(void) memcpy(usb_dc_cfg.ep_in[epid].ep_ram_addr, usb_dc_cfg.ep_in[epid].xfer_buf, usb_dc_cfg.ep_in[epid].mps); } else { memcpy(usb_dc_cfg.ep_in[epid].ep_ram_addr, usb_dc_cfg.ep_in[epid].xfer_buf, usb_dc_cfg.ep_in[epid].xfer_len); + EPn_SET_TX_LEN(epid, usb_dc_cfg.ep_in[epid].xfer_len); } if (usb_dc_cfg.ep_in[epid].eptype != USB_ENDPOINT_TYPE_ISOCHRONOUS) { EPn_SET_TX_VALID(epid); |
