Skip to content
Snippets Groups Projects
Commit 40d9554e authored by Cristian Maglie's avatar Cristian Maglie
Browse files

USB-CDC: Avoid need to send ZLP by sending up to (EPX_SIZE-1) bytes at a time

parent 07263f8b
No related branches found
No related tags found
No related merge requests found
...@@ -627,8 +627,8 @@ uint32_t USBDeviceClass::send(uint32_t ep, const void *data, uint32_t len) ...@@ -627,8 +627,8 @@ uint32_t USBDeviceClass::send(uint32_t ep, const void *data, uint32_t len)
// Flash area // Flash area
while (len != 0) while (len != 0)
{ {
if (len >= 64) { if (len >= EPX_SIZE) {
length = 64; length = EPX_SIZE - 1;
} else { } else {
length = len; length = len;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment