summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/portable/stm/stm32f4/dcd_stm32f4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/portable/stm/stm32f4/dcd_stm32f4.c b/src/portable/stm/stm32f4/dcd_stm32f4.c
index 2abf0465b..a98a0ed53 100644
--- a/src/portable/stm/stm32f4/dcd_stm32f4.c
+++ b/src/portable/stm/stm32f4/dcd_stm32f4.c
@@ -484,6 +484,7 @@ void OTG_FS_IRQHandler(void) {
// IN XFER complete.
if(in_ep[n].DIEPINT & USB_OTG_DIEPINT_XFRC) {
in_ep[n].DIEPINT = USB_OTG_DIEPINT_XFRC;
+ dev->DIEPEMPMSK &= ~(1 << n); // Turn off TXFE b/c xfer inactive.
dcd_event_xfer_complete(0, n | TUSB_DIR_IN_MASK, xfer->total_len, XFER_RESULT_SUCCESS, true);
}