From 52bfe538e33a878f9585ce91c634609ecf68ac7d Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Tue, 14 Jul 2020 11:38:29 +0200 Subject: [PATCH] cdcacm.c: Set bMaxPacketSize0 to 32 (#693, #697) Smaller bMaxPacketSize0 resulted in delayed enumeration when BMP firmware is started by the STLink bootloader. --- src/platforms/common/cdcacm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/common/cdcacm.c b/src/platforms/common/cdcacm.c index f3df8fc..49c9a70 100644 --- a/src/platforms/common/cdcacm.c +++ b/src/platforms/common/cdcacm.c @@ -58,7 +58,7 @@ static const struct usb_device_descriptor dev = { .bDeviceClass = 0xEF, /* Miscellaneous Device */ .bDeviceSubClass = 2, /* Common Class */ .bDeviceProtocol = 1, /* Interface Association */ - .bMaxPacketSize0 = 8, + .bMaxPacketSize0 = 32, .idVendor = 0x1D50, .idProduct = 0x6018, .bcdDevice = 0x0100,