Skip to content

Commit b624664

Browse files
authored
Merge pull request hathach#1614 from kasjer/kasjer/fix-nrf5x-with-iso
nrf5x: Fix endpoint internal state when closed
2 parents 101cbf6 + 5e3cfe7 commit b624664

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/portable/nordic/nrf5x/dcd_nrf5x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ void dcd_edpt_close (uint8_t rhport, uint8_t ep_addr)
438438
// When both ISO endpoint are close there is no need for SOF any more.
439439
if (_dcd.xfer[EP_ISO_NUM][TUSB_DIR_IN].mps + _dcd.xfer[EP_ISO_NUM][TUSB_DIR_OUT].mps == 0) NRF_USBD->INTENCLR = USBD_INTENCLR_SOF_Msk;
440440
}
441+
_dcd.xfer[epnum][dir].started = false;
441442
__ISB(); __DSB();
442443
}
443444

0 commit comments

Comments
 (0)