Skip to content

Commit 07ad64a

Browse files
committed
Do not set USB_EP_RX_NAK for ISO EP.
1 parent db65759 commit 07ad64a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,9 +1170,11 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr)
11701170
}
11711171
else
11721172
{ // OUT
1173+
if (pcd_get_eptype(USB, epnum) != USB_EP_ISOCHRONOUS) {
1174+
pcd_set_ep_rx_status(USB, epnum, USB_EP_RX_NAK);
1175+
}
11731176
/* Reset to DATA0 if clearing stall condition. */
11741177
pcd_clear_rx_dtog(USB, epnum);
1175-
pcd_set_ep_rx_status(USB, epnum, USB_EP_RX_NAK);
11761178
}
11771179
}
11781180

0 commit comments

Comments
 (0)