From 35e8d184b1456ae0ed6f1df60e5559462179ded1 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 27 Mar 2024 15:00:37 +1100 Subject: [PATCH] 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 --- shared/tinyusb/tusb_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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