Fixed incorrectly issuing STALL response to unsupported control request SETUP packets, rather than in the data/status stage.

This commit is contained in:
Dean Camera 2013-01-27 13:07:48 +00:00
parent 5937a134ab
commit 22b04429e6
3 changed files with 3 additions and 1 deletions

View file

@ -117,8 +117,8 @@ void USB_Device_ProcessControlRequest(void)
if (Endpoint_IsSETUPReceived())
{
Endpoint_StallTransaction();
Endpoint_ClearSETUP();
Endpoint_StallTransaction();
}
}