Skip to content

Commit 5c562e1

Browse files
committed
[FIXME] Reenable full EP_SIZE USB send
1 parent 25ebd44 commit 5c562e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/arduino/USB/USBCore.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,8 @@ uint32_t USBDeviceClass::send(uint32_t ep, const void *data, uint32_t len)
694694
LastTransmitTimedOut[ep] = 0;
695695

696696
if (len >= EPX_SIZE) {
697-
length = EPX_SIZE - 1;
697+
usbd.epBank1EnableAutoZLP(ep);
698+
length = EPX_SIZE;
698699
} else {
699700
length = len;
700701
}

0 commit comments

Comments
 (0)