Skip to content

Commit 45439cf

Browse files
Merge pull request #549 from stevstrong/patch-17
F4: USBD_StrDesc[] size fix
2 parents 26ae0cc + 9870a47 commit 45439cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STM32F4/cores/maple/libmaple/usbF4/VCP/usbd_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
#define USBD_CFG_MAX_NUM 1
3434
#define USBD_ITF_MAX_NUM 1
35-
#define USB_MAX_STR_DESC_SIZ 50
35+
#define USB_MAX_STR_DESC_SIZ (64+4) // longest descriptor string length + 2
3636

3737
/** @defgroup USB_VCP_Class_Layer_Parameter
3838
* @{

0 commit comments

Comments
 (0)