Commit f27e8fe1 authored by Cristian Maglie's avatar Cristian Maglie Committed by Cristian Maglie

Revert "Subtract one from USB_EP_SIZE in USB_SendSpace"

This reverts commit 817d700a7503b269f986075cad637ce56c657e37.
parent 942744d8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment