Skip to content

Commit cb2c981

Browse files
committed
Revert "Subtract one from USB_EP_SIZE in USB_SendSpace"
This reverts commit 817d700a7503b269f986075cad637ce56c657e37.
1 parent 689f543 commit cb2c981

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hardware/arduino/avr/cores/arduino/USBCore.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,7 @@ u8 USB_SendSpace(u8 ep)
256256
LockEP lock(ep);
257257
if (!ReadWriteAllowed())
258258
return 0;
259-
// subtract 1 from the EP size to never send a full packet,
260-
// this avoids dealing with ZLP's in USB_Send
261-
return USB_EP_SIZE - 1 - FifoByteCount();
259+
return USB_EP_SIZE - FifoByteCount();
262260
}
263261

264262
// Blocking Send of data to an endpoint

0 commit comments

Comments
 (0)