Skip to content

Commit 3133cac

Browse files
committed
nrf5x: Fix reception of large ISO packets
ISO packet size is up to 1023 for full speed device. Upon completion of ISO reception, reported length of incoming packet was truncated to one byte only. This results in incorrect data stream for higher bit rates 48 samples * 4 bytes per sample * 2 channels = 384 bytes of data and 128 was reported. There is no change in logic extending xact_len to uint16_t fixes the issue.
1 parent 6393412 commit 3133cac

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)