X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/de0df8b16259458c78c742b5dbedd4ac90856285..5cae54154506176d64a581c5b3d9550c901b570c:/LUFA/Drivers/USB/Core/DeviceStandardReq.c diff --git a/LUFA/Drivers/USB/Core/DeviceStandardReq.c b/LUFA/Drivers/USB/Core/DeviceStandardReq.c index 1106f7b0b..3176e15bc 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(); } } @@ -134,7 +134,7 @@ static void USB_Device_SetAddress(void) while (!(Endpoint_IsINReady())); - USB_Device_EnableDeviceAddress(); + USB_Device_EnableDeviceAddress(DeviceAddress); USB_DeviceState = (DeviceAddress) ? DEVICE_STATE_Addressed : DEVICE_STATE_Default; }