From 22b04429e66949e35455077f04fdef99ccd9382a Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 27 Jan 2013 13:07:48 +0000 Subject: Fixed incorrectly issuing STALL response to unsupported control request SETUP packets, rather than in the data/status stage. --- LUFA/Drivers/USB/Core/DeviceStandardReq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LUFA/Drivers') diff --git a/LUFA/Drivers/USB/Core/DeviceStandardReq.c b/LUFA/Drivers/USB/Core/DeviceStandardReq.c index 1106f7b0b..6284dd389 100644 --- a/LUFA/Drivers/USB/Core/DeviceStandardReq.c +++ b/LUFA/Drivers/USB/Core/DeviceStandardReq.c @@ -117,8 +117,8 @@ void USB_Device_ProcessControlRequest(void) if (Endpoint_IsSETUPReceived()) { - Endpoint_StallTransaction(); Endpoint_ClearSETUP(); + Endpoint_StallTransaction(); } } -- cgit v1.2.3