Просмотр исходного кода

Merge pull request #1614 from kasjer/kasjer/fix-nrf5x-with-iso

nrf5x: Fix endpoint internal state when closed
Ha Thach 3 лет назад
Родитель
Сommit
b624664f52
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/portable/nordic/nrf5x/dcd_nrf5x.c

+ 1 - 0
src/portable/nordic/nrf5x/dcd_nrf5x.c

@@ -438,6 +438,7 @@ void dcd_edpt_close (uint8_t rhport, uint8_t ep_addr)
     // When both ISO endpoint are close there is no need for SOF any more.
     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;
   }
+  _dcd.xfer[epnum][dir].started = false;
   __ISB(); __DSB();
 }