Fixed incorrectly issuing STALL response to unsupported control request SETUP packets, rather than in the data/status stage.
This commit is contained in:
@@ -117,8 +117,8 @@ void USB_Device_ProcessControlRequest(void)
|
||||
|
||||
if (Endpoint_IsSETUPReceived())
|
||||
{
|
||||
Endpoint_StallTransaction();
|
||||
Endpoint_ClearSETUP();
|
||||
Endpoint_StallTransaction();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user