Skip to content

Commit 35e8d18

Browse files
committed
shared/tinyusb: Increase default string descr max length to 40 chars.
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>
1 parent 0f16ae9 commit 35e8d18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/tinyusb/tusb_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
#define USBD_MAX_POWER_MA (250)
105105

106106
#ifndef MICROPY_HW_USB_DESC_STR_MAX
107-
#define MICROPY_HW_USB_DESC_STR_MAX (20)
107+
#define MICROPY_HW_USB_DESC_STR_MAX (40)
108108
#endif
109109

110110
#if CFG_TUD_CDC

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy