summaryrefslogtreecommitdiff
path: root/examples/device/hid_composite/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2020-04-01 00:05:11 +0700
committerGitHub <[email protected]>2020-04-01 00:05:11 +0700
commit7a32ee58f3eb64b93a958462be40e4e1e4c0e16c (patch)
tree061b0eea262c20b200234701aaa36d50dd8e9864 /examples/device/hid_composite/src
parent370dd1839465e71caa3024f6f2347b701a94953d (diff)
parent794212d44e38a05d8b747e43942595d214ee5b0b (diff)
Merge pull request #318 from majbthrd/confignum
add provision for multiple configurations
Diffstat (limited to 'examples/device/hid_composite/src')
-rw-r--r--examples/device/hid_composite/src/usb_descriptors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/hid_composite/src/usb_descriptors.c b/examples/device/hid_composite/src/usb_descriptors.c
index 19689c90b..6bde2ff7a 100644
--- a/examples/device/hid_composite/src/usb_descriptors.c
+++ b/examples/device/hid_composite/src/usb_descriptors.c
@@ -101,8 +101,8 @@ enum
uint8_t const desc_configuration[] =
{
- // interface count, string index, total length, attribute, power in mA
- TUD_CONFIG_DESCRIPTOR(ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
+ // Config number, interface count, string index, total length, attribute, power in mA
+ TUD_CONFIG_DESCRIPTOR(1, ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
// Interface number, string index, protocol, report descriptor len, EP In & Out address, size & polling interval
TUD_HID_DESCRIPTOR(ITF_NUM_HID, 0, HID_PROTOCOL_NONE, sizeof(desc_hid_report), EPNUM_HID, CFG_TUD_HID_BUFSIZE, 10)