From ec1eeccab45af6893f19cd07292808bbe7c62cf5 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 21 Apr 2023 18:17:34 +1000 Subject: [PATCH] shared/tinyusb: Revert setting of CFG_TUD_CDC_EP_BUFSIZE to 256. This reverts commit 0613d3e3561a82fffa36594647ef916b19bc912b. 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 #11253. Signed-off-by: Damien George --- shared/tinyusb/tusb_config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/shared/tinyusb/tusb_config.h b/shared/tinyusb/tusb_config.h index a6410a1c93..28bee09a59 100644 --- a/shared/tinyusb/tusb_config.h +++ b/shared/tinyusb/tusb_config.h @@ -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