Skip to content

Commit

Permalink
shared/tinyusb: Revert setting of CFG_TUD_CDC_EP_BUFSIZE to 256.
Browse files Browse the repository at this point in the history
This reverts commit 0613d3e.

The value of CFG_TUD_CDC_EP_BUFSIZE should match the endpoint size,
otherwise data may stay in the lower layers of the USB stack (and not
passed up to the higher layers) until a total of CFG_TUD_CDC_EP_BUFSIZE
bytes have been received, which may not happen for a long time.

Fixes issue micropython#11253.

Signed-off-by: Damien George <[email protected]>
  • Loading branch information
dpgeorge committed Apr 21, 2023
1 parent bf3eb9d commit ec1eecc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion shared/tinyusb/tusb_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@

// CDC Configuration
#if CFG_TUD_CDC
#define CFG_TUD_CDC_EP_BUFSIZE (256)
#define CFG_TUD_CDC_RX_BUFSIZE (256)
#define CFG_TUD_CDC_TX_BUFSIZE (256)
#endif
Expand Down

0 comments on commit ec1eecc

Please sign in to comment.