mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-05-09 00:21:44 +08:00
Fix ch58x fs ip send bug
This commit is contained in:
parent
c09ceb2537
commit
374e6d6e4d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user