Reset CTR flag for endpoint from usbd_poll if no callback.

This commit is contained in:
Gareth McMullin 2011-01-30 15:42:12 +13:00
parent f87170e06e
commit 193a1ed3b8
1 changed files with 2 additions and 0 deletions

View File

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