summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorMengsk <[email protected]>2021-07-08 00:25:12 +0200
committerMengsk <[email protected]>2021-07-08 00:25:12 +0200
commit5b4b5ca533b95fb39648f7eaf9ae77d0a94d7893 (patch)
treef0288680973c48918bc4d8cb236efc8ba663c274 /src/device
parent941b02c6a98cd34eb84cf499db9810108871d49b (diff)
parent7e883e0f41a4fdda699bbaf1d64a28d82527b8f9 (diff)
Add bwPollTimeout set callback, postpone download callback after GETSTATUS
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index fe1863706..fd3aee6d7 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -640,7 +640,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
#define TUD_DFU_MODE_ALTS(_itfnum, ...) \
TU_XSTRCAT(TUD_DFU_MODE_ALT_, CFG_TUD_DFU_ALT_COUNT)(_itfnum, __VA_ARGS__)
-// Interface number, detach timeout, transfer size, string index 1, [string index 2, string index n]
+// Interface number, attributes, detach timeout, transfer size, string index 0, [string index 1, string index n]
#define TUD_DFU_MODE_DESCRIPTOR(_itfnum, _attr, _timeout, _xfer_size, _stridx, ...) \
TUD_DFU_MODE_ALTS(_itfnum, _TUD_DFU_COMBINE(_stridx, __VA_ARGS__)) \
TUD_DFU_MODE_FUNC(_attr, _timeout, _xfer_size)