From 1e308dd6c096d9078b3cbe8ff387dcec6e83e71d Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 8 Nov 2021 19:18:52 +0700 Subject: [PATCH] reduce CFG_TUD_DFU_XFER_BUFSIZE for max compatible --- examples/device/dfu/src/tusb_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/device/dfu/src/tusb_config.h b/examples/device/dfu/src/tusb_config.h index 66e357021..012d50019 100644 --- a/examples/device/dfu/src/tusb_config.h +++ b/examples/device/dfu/src/tusb_config.h @@ -80,7 +80,7 @@ #define CFG_TUD_DFU 1 // DFU buffer size, it has to be set to the buffer size used in TUD_DFU_DESCRIPTOR -#define CFG_TUD_DFU_XFER_BUFSIZE 512 +#define CFG_TUD_DFU_XFER_BUFSIZE ( OPT_MODE_HIGH_SPEED ? 512 : 64 ) #ifdef __cplusplus }