aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/usb/usb_f103.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/usb/usb_f103.c b/lib/usb/usb_f103.c
index 1f82def..9b995e4 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) {