From a254bc630869290d20ca979f1ed293d7138f624c Mon Sep 17 00:00:00 2001 From: "David A. Aguirre Morales" Date: Tue, 6 Oct 2020 19:40:40 -0500 Subject: [PATCH] Fix icdi usb error https://github.com/blacksphere/blackmagic/issues/740 https://github.com/blacksphere/blackmagic/pull/748 --- src/platforms/common/cdcacm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platforms/common/cdcacm.c b/src/platforms/common/cdcacm.c index 7fe4dc3..3516336 100644 --- a/src/platforms/common/cdcacm.c +++ b/src/platforms/common/cdcacm.c @@ -58,7 +58,11 @@ static const struct usb_device_descriptor dev = { .bDeviceClass = 0xEF, /* Miscellaneous Device */ .bDeviceSubClass = 2, /* Common Class */ .bDeviceProtocol = 1, /* Interface Association */ +#ifdef LM4F + .bMaxPacketSize0 = 64, /*Fixed for icdi*/ +#else .bMaxPacketSize0 = 32, +#endif .idVendor = 0x1D50, .idProduct = 0x6018, .bcdDevice = 0x0100,