diff --git a/port/ch32/usb_ch58x_dc_usbfs.c b/port/ch32/usb_ch58x_dc_usbfs.c index 21436802..51888a2d 100644 --- a/port/ch32/usb_ch58x_dc_usbfs.c +++ b/port/ch32/usb_ch58x_dc_usbfs.c @@ -64,7 +64,7 @@ EPn_TX_LEN(epid) = len /*!< Get epid ep rx len */ #define EPn_GET_RX_LEN(epid) \ - R8_USB_RX_LEN + CH58x_USBFS_DEV->USB_RX_LEN /*!< ep nums */ #ifndef USB_NUM_BIDIR_ENDPOINTS