summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-03-27 15:00:37 +1100
committerDamien George <damien@micropython.org>2024-03-27 23:57:57 +1100
commit35e8d184b1456ae0ed6f1df60e5559462179ded1 (patch)
treee44b1638672bd09d1be89aa4b418572dc34a193d
parent0f16ae92c0cf1e18d9612d0e2b29475a4d6719d8 (diff)
downloadmicropython-35e8d184b1456ae0ed6f1df60e5559462179ded1.tar.gz
micropython-35e8d184b1456ae0ed6f1df60e5559462179ded1.zip
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>
-rw-r--r--shared/tinyusb/tusb_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/tinyusb/tusb_config.h b/shared/tinyusb/tusb_config.h
index c5644e3d58..ab47321afd 100644
--- a/shared/tinyusb/tusb_config.h
+++ b/shared/tinyusb/tusb_config.h
@@ -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