Kaynağa Gözat

reduce CFG_TUD_DFU_XFER_BUFSIZE for max compatible

hathach 4 yıl önce
ebeveyn
işleme
1e308dd6c0
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      examples/device/dfu/src/tusb_config.h

+ 1 - 1
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
  }