Skip to content

Commit

Permalink
fix(esp_tinyusb): Fixed MSC EP size for HS in default configuration d…
Browse files Browse the repository at this point in the history
…escriptor
  • Loading branch information
roma-jam committed Jan 30, 2024
1 parent cd10cfe commit f9c6982
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions device/esp_tinyusb/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 1.4.3~1 (Unreleased)

- CDC-ACM: Remove MIN() definition if already defined
- MSC: Set EP size in configuration descriptor based on speed

## 1.4.3

Expand Down
2 changes: 1 addition & 1 deletion device/esp_tinyusb/usb_descriptors.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ uint8_t const descriptor_cfg_kconfig[] = {

#if CFG_TUD_MSC
// Interface number, string index, EP Out & EP In address, EP size
TUD_MSC_DESCRIPTOR(ITF_NUM_MSC, STRID_MSC_INTERFACE, EPNUM_MSC, 0x80 | EPNUM_MSC, 64), // highspeed 512
TUD_MSC_DESCRIPTOR(ITF_NUM_MSC, STRID_MSC_INTERFACE, EPNUM_MSC, 0x80 | EPNUM_MSC, TUD_OPT_HIGH_SPEED ? 512 : 64),
#endif

#if CFG_TUD_NCM
Expand Down

0 comments on commit f9c6982

Please sign in to comment.