Merge pull request #1642 from kasjer/kasjer/nrf5x-fix-out-iso-packet-size-report

nrf5x: Fix reception of large ISO packets
This commit is contained in:
Ha Thach 2022-09-13 14:57:01 +07:00 committed by GitHub
commit 7ba950c006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -765,7 +765,7 @@ void dcd_int_handler(uint8_t rhport)
if ( tu_bit_test(int_status, USBD_INTEN_ENDEPOUT0_Pos+epnum))
{
xfer_td_t* xfer = get_td(epnum, TUSB_DIR_OUT);
uint8_t const xact_len = NRF_USBD->EPOUT[epnum].AMOUNT;
uint16_t const xact_len = NRF_USBD->EPOUT[epnum].AMOUNT;
xfer->buffer += xact_len;
xfer->actual_len += xact_len;