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 committed 2013-01-27 13:07:48 +00:00
1 parent 5937a134ab
commit 22b04429e6
3 files changed
+3 -1

No files matched your search

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