From fd6610bdae6dd5bc0c3fa5e2ba507cdc65fb28d7 Mon Sep 17 00:00:00 2001 From: Jason Kotzin Date: Tue, 9 Aug 2022 17:31:30 -0700 Subject: [PATCH] samd fix USB max packet size --- 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 3b213b11..5ebbae02 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 SAMD21E17 + .bMaxPacketSize0 = 64, +#else .bMaxPacketSize0 = 8, +#endif .idVendor = 0x1D50, .idProduct = 0x6018, .bcdDevice = 0x0100,