summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremiah McCarthy <[email protected]>2021-04-22 16:42:54 -0400
committerJeremiah McCarthy <[email protected]>2021-04-22 16:42:54 -0400
commit45e401e69df87353f528d0e3ce313d5af5a4f90c (patch)
treeb11e8ac92796becda2dd0f83b61221dbd5cfcc35
parente54d9d10af40f4d83410f1e9cd94c47138c7fe7f (diff)
Remove unused alt_setting
-rw-r--r--src/device/usbd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index f9700811f..3d71b5e35 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -546,10 +546,10 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
#define TUD_DFU_MODE_DESC_LEN (9 + 9)
// DFU runtime descriptor
-// Interface number, string index, alternate setting, attributes, detach timeout, transfer size
-#define TUD_DFU_MODE_DESCRIPTOR(_itfnum, _stridx, _alt_setting, _attr, _timeout, _xfer_size) \
+// Interface number, string index, attributes, detach timeout, transfer size
+#define TUD_DFU_MODE_DESCRIPTOR(_itfnum, _stridx, _attr, _timeout, _xfer_size) \
/* Interface */ \
- 9, TUSB_DESC_INTERFACE, _itfnum, _alt_setting, 0, TUD_DFU_APP_CLASS, TUD_DFU_APP_SUBCLASS, DFU_PROTOCOL_DFU, _stridx, \
+ 9, TUSB_DESC_INTERFACE, _itfnum, 0, 0, TUD_DFU_APP_CLASS, TUD_DFU_APP_SUBCLASS, DFU_PROTOCOL_DFU, _stridx, \
/* Function */ \
9, DFU_DESC_FUNCTIONAL, _attr, U16_TO_U8S_LE(_timeout), U16_TO_U8S_LE(_xfer_size), U16_TO_U8S_LE(0x0101)