diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2017-01-04 17:10:09 +0100 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2017-03-16 19:35:47 +0200 |
commit | f27e8fe194508afca766d21098a841e87a82b099 (patch) | |
tree | a0d9b3efe3bf4783fc080701bb884014778af863 /cores | |
parent | 942744d8008143e8f9bccff191edfc94cc4c5fbe (diff) |
Revert "Subtract one from USB_EP_SIZE in USB_SendSpace"
This reverts commit 817d700a7503b269f986075cad637ce56c657e37.
Diffstat (limited to 'cores')
-rw-r--r-- | cores/arduino/USBCore.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp index 723edb3..efac25e 100644 --- a/cores/arduino/USBCore.cpp +++ b/cores/arduino/USBCore.cpp @@ -256,9 +256,7 @@ u8 USB_SendSpace(u8 ep) LockEP lock(ep); if (!ReadWriteAllowed()) return 0; - // subtract 1 from the EP size to never send a full packet, - // this avoids dealing with ZLP's in USB_Send - return USB_EP_SIZE - 1 - FifoByteCount(); + return USB_EP_SIZE - FifoByteCount(); } // Blocking Send of data to an endpoint |