Revert "Subtract one from USB_EP_SIZE in USB_SendSpace"

This reverts commit 817d700a7503b269f986075cad637ce56c657e37.
This commit is contained in:
Cristian Maglie 2017-01-04 17:10:09 +01:00 committed by Cristian Maglie
parent 942744d800
commit f27e8fe194
1 changed files with 1 additions and 3 deletions

View File

@ -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