diff --git a/lib/usb/usb_f103.c b/lib/usb/usb_f103.c index 1f82def1..9b995e43 100644 --- a/lib/usb/usb_f103.c +++ b/lib/usb/usb_f103.c @@ -239,6 +239,8 @@ void usbd_poll(void) if (_usbd_device.user_callback_ctr[ep][type]) _usbd_device.user_callback_ctr[ep][type] (ep); + else + USB_CLR_EP_RX_CTR(ep); } if (istr & USB_ISTR_SUSP) {