Skip to content

Commit

Permalink
shared/tinyusb: Increase default string descr max length to 40 chars.
Browse files Browse the repository at this point in the history
When defining custom USB devices, longer strings may be needed.  Eventually
the memory for string descriptors can be allocated on demand, but for now
this bigger value should be reasonable.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Mar 27, 2024
1 parent 0f16ae9 commit 35e8d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/tinyusb/tusb_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
#define USBD_MAX_POWER_MA (250)

#ifndef MICROPY_HW_USB_DESC_STR_MAX
#define MICROPY_HW_USB_DESC_STR_MAX (20)
#define MICROPY_HW_USB_DESC_STR_MAX (40)
#endif

#if CFG_TUD_CDC
Expand Down

0 comments on commit 35e8d18

Please sign in to comment.