Reset CTR flag for endpoint from usbd_poll if no callback.
This commit is contained in:
parent
f87170e06e
commit
193a1ed3b8
@ -239,6 +239,8 @@ void usbd_poll(void)
|
|||||||
|
|
||||||
if (_usbd_device.user_callback_ctr[ep][type])
|
if (_usbd_device.user_callback_ctr[ep][type])
|
||||||
_usbd_device.user_callback_ctr[ep][type] (ep);
|
_usbd_device.user_callback_ctr[ep][type] (ep);
|
||||||
|
else
|
||||||
|
USB_CLR_EP_RX_CTR(ep);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (istr & USB_ISTR_SUSP) {
|
if (istr & USB_ISTR_SUSP) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user