From d76f6ee6dfd863d40538a82296384bf660e0a49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Sun, 24 Jul 2022 16:45:30 +0200 Subject: [PATCH] dfu: fix USB DFU descriptor --- components/tinyusb_dfu/additions/src/descriptors_control.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/tinyusb_dfu/additions/src/descriptors_control.c b/components/tinyusb_dfu/additions/src/descriptors_control.c index ebbc6bc..cf278a5 100644 --- a/components/tinyusb_dfu/additions/src/descriptors_control.c +++ b/components/tinyusb_dfu/additions/src/descriptors_control.c @@ -44,9 +44,10 @@ uint8_t const desc_configuration[] = { // Interface number, string index, protocol, report descriptor len, EP In address, size & polling interval TUD_HID_DESCRIPTOR(ITF_NUM_HID, 6, HID_PROTOCOL_NONE, sizeof(desc_hid_report), 0x84, 16, 10), # endif - +# if CFG_TUD_DFU_RUNTIME // Interface number, string index, attributes, detach timeout, transfer size */ - TUD_DFU_RT_DESCRIPTOR(ITF_NUM_DFU_RT, 7, 0x0d, 1000, 4096), + TUD_DFU_RT_DESCRIPTOR(ITF_NUM_DFU_RT, 7, 0x0f, 1000, 512), // allow detach, manifest, upload, download; set transfer size to high speed 512 +# endif }; // =============================================================================