From 374e6d6e4d747f154edae2af5fe005ea43a4178b Mon Sep 17 00:00:00 2001 From: Chen Leeren <1570139720@qq.com> Date: Tue, 11 Feb 2025 00:03:10 +0800 Subject: Fix ch58x fs ip send bug --- port/ch32/usb_ch58x_dc_usbfs.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.3.1