summaryrefslogtreecommitdiff
path: root/examples/device/dfu/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-11-08 19:18:52 +0700
committerhathach <[email protected]>2021-11-08 19:18:52 +0700
commit1e308dd6c096d9078b3cbe8ff387dcec6e83e71d (patch)
tree4ee19e64cf467db36a3f39a9379763594d136444 /examples/device/dfu/src
parentd415bd4d7b144f470b8d1c12284abb161ac4dd5f (diff)
reduce CFG_TUD_DFU_XFER_BUFSIZE for max compatible
Diffstat (limited to 'examples/device/dfu/src')
-rw-r--r--examples/device/dfu/src/tusb_config.h2
1 files changed, 1 insertions, 1 deletions
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
}