Fixed SET FEATURE and CLEAR FEATURE control requests directed at an unconfigured endpoint causing request timeouts.
This commit is contained in:
parent
def0e0ff1b
commit
58167f5d4d
4 changed files with 17 additions and 16 deletions
|
|
@ -24,7 +24,7 @@ uint8_t TEMPLATE_FUNC_NAME (const void* Buffer,
|
|||
|
||||
if (Endpoint_IsINReady())
|
||||
{
|
||||
uint8_t BytesInEndpoint = Endpoint_BytesInEndpoint();
|
||||
uint16_t BytesInEndpoint = Endpoint_BytesInEndpoint();
|
||||
|
||||
while (Length && (BytesInEndpoint < USB_ControlEndpointSize))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue