Revert "Subtract one from USB_EP_SIZE in USB_SendSpace"
This reverts commit 817d700a7503b269f986075cad637ce56c657e37.
This commit is contained in:
parent
3cfe9ef01b
commit
1c404ac145
|
@ -256,9 +256,7 @@ u8 USB_SendSpace(u8 ep)
|
||||||
LockEP lock(ep);
|
LockEP lock(ep);
|
||||||
if (!ReadWriteAllowed())
|
if (!ReadWriteAllowed())
|
||||||
return 0;
|
return 0;
|
||||||
// subtract 1 from the EP size to never send a full packet,
|
return USB_EP_SIZE - FifoByteCount();
|
||||||
// this avoids dealing with ZLP's in USB_Send
|
|
||||||
return USB_EP_SIZE - 1 - FifoByteCount();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Blocking Send of data to an endpoint
|
// Blocking Send of data to an endpoint
|
||||||
|
|
Loading…
Reference in New Issue