Skip to content

Commit

Permalink
Fix ctaphid config desc length
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyichuan committed Aug 22, 2022
1 parent 276a061 commit 0cf4a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/USB/device/usb_descriptors.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ uint8_t const desc_configuration_ccid_endpoints[] = {
#define CCID_DESC_LEN (sizeof(desc_configuration_ccid_interface) + \
sizeof(tusb_ccid_descriptor_t) + sizeof(desc_configuration_ccid_endpoints))
#define CONFIG_TOTAL_LEN (\
TUD_CONFIG_DESC_LEN + 2*TUD_HID_DESC_LEN + WEBUSB_DESC_LEN + CCID_DESC_LEN)
TUD_CONFIG_DESC_LEN + TUD_HID_INOUT_DESC_LEN + WEBUSB_DESC_LEN + CCID_DESC_LEN + TUD_HID_DESC_LEN)

uint8_t const desc_configuration[TUD_CONFIG_DESC_LEN] = {
// Config number, interface count, string index, total length, attribute, power in mA
Expand Down

0 comments on commit 0cf4a6e

Please sign in to comment.