Browse Source

Reset CTR flag for endpoint from usbd_poll if no callback.

pull/2/head
Gareth McMullin 14 years ago
parent
commit
193a1ed3b8
  1. 2
      lib/usb/usb_f103.c

2
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) {

Loading…
Cancel
Save