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>
pull/14195/head
Damien George 2024-03-27 15:00:37 +11:00
rodzic 0f16ae92c0
commit 35e8d184b1
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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