Fixed incorrectly issuing STALL response to unsupported control request SETUP packets, rather than in the data/status stage.
This commit is contained in:
parent
5937a134ab
commit
22b04429e6
3 changed files with 3 additions and 1 deletions
|
@ -117,8 +117,8 @@ void USB_Device_ProcessControlRequest(void)
|
|||
|
||||
if (Endpoint_IsSETUPReceived())
|
||||
{
|
||||
Endpoint_StallTransaction();
|
||||
Endpoint_ClearSETUP();
|
||||
Endpoint_StallTransaction();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue