Skip to content

Commit 7ba950c

Browse files
authored
Merge pull request #1642 from kasjer/kasjer/nrf5x-fix-out-iso-packet-size-report
nrf5x: Fix reception of large ISO packets
2 parents 6393412 + 3133cac commit 7ba950c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/portable/nordic/nrf5x/dcd_nrf5x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ void dcd_int_handler(uint8_t rhport)
765765
if ( tu_bit_test(int_status, USBD_INTEN_ENDEPOUT0_Pos+epnum))
766766
{
767767
xfer_td_t* xfer = get_td(epnum, TUSB_DIR_OUT);
768-
uint8_t const xact_len = NRF_USBD->EPOUT[epnum].AMOUNT;
768+
uint16_t const xact_len = NRF_USBD->EPOUT[epnum].AMOUNT;
769769

770770
xfer->buffer += xact_len;
771771
xfer->actual_len += xact_len;

0 commit comments

Comments
 (0)