Skip to content

Commit 3127d1d

Browse files
committed
USB-CDC: Increased buffer size to 256 bytes
This change improves read performance when massive data is sent via USB by exploiting the hardware capability to handle multi-packet transfers autonomously.
1 parent 5265e12 commit 3127d1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/USB/USBCore.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ void USBDeviceClass::initEP(uint32_t ep, uint32_t config)
427427
}
428428
else if (config == (USB_ENDPOINT_TYPE_BULK | USB_ENDPOINT_OUT(0)))
429429
{
430-
epHandlers[ep] = new DoubleBufferedEPOutHandler(usbd, ep, 64);
430+
epHandlers[ep] = new DoubleBufferedEPOutHandler(usbd, ep, 256);
431431
}
432432
else if (config == (USB_ENDPOINT_TYPE_BULK | USB_ENDPOINT_IN(0)))
433433
{

0 commit comments

Comments
 (0)