diff options
| author | Mengsk <[email protected]> | 2022-12-29 23:30:24 +0100 |
|---|---|---|
| committer | Mengsk <[email protected]> | 2022-12-29 23:30:24 +0100 |
| commit | 07ad64adfe192a3cdc6dc20088d98dbb6beb0f58 (patch) | |
| tree | cd44eadfd4783621585526f7c4cbf54322203013 /src/portable | |
| parent | db65759b1eb24c8dc20dfd77f2ff0ea07914e9d2 (diff) | |
Do not set USB_EP_RX_NAK for ISO EP.
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c index f3b55cd75..d462fc649 100644 --- a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c +++ b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c @@ -1170,9 +1170,11 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr) } else { // OUT + if (pcd_get_eptype(USB, epnum) != USB_EP_ISOCHRONOUS) { + pcd_set_ep_rx_status(USB, epnum, USB_EP_RX_NAK); + } /* Reset to DATA0 if clearing stall condition. */ pcd_clear_rx_dtog(USB, epnum); - pcd_set_ep_rx_status(USB, epnum, USB_EP_RX_NAK); } } |
