Fixed incorrectly issuing STALL response to unsupported control request SETUP packets...
[pub/USBasp.git] / LUFA / Drivers / USB / Core / DeviceStandardReq.c
index 1106f7b..6284dd3 100644 (file)
@@ -117,8 +117,8 @@ void USB_Device_ProcessControlRequest(void)
 
        if (Endpoint_IsSETUPReceived())
        {
-               Endpoint_StallTransaction();
                Endpoint_ClearSETUP();
+               Endpoint_StallTransaction();
        }
 }