diff options
| author | sakumisu <[email protected]> | 2024-01-06 00:59:03 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-01-06 01:09:55 +0800 |
| commit | 5fe66b4f0d5e9c4ec9edad5d9cfbb8ca939bbd8e (patch) | |
| tree | 2ff97184fa25797776203527f232e173b4866784 /demo | |
| parent | 249e650c372181b9e933c4d86d01828e999e8e43 (diff) | |
dwc2: ctrl and bulk no need nak irq, when intr calls nak, retry by user
Diffstat (limited to 'demo')
| -rw-r--r-- | demo/usb_host.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demo/usb_host.c b/demo/usb_host.c index 1928fb53..e1ef6d26 100644 --- a/demo/usb_host.c +++ b/demo/usb_host.c @@ -87,6 +87,9 @@ void usbh_hid_callback(void *arg, int nbytes) } USB_LOG_RAW("nbytes:%d\r\n", nbytes); usbh_submit_urb(&hid_class->intin_urb); + } else if (nbytes == -USB_ERR_NAK) { /* for dwc2 */ + usbh_submit_urb(&hid_class->intin_urb); + } else { } } |
