X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/2bd88ebc4f37baf81d550e79b3e3118b0843e61c..e0985b995009d71b80d214a66944e76f4e41aadb:/LUFA/Drivers/USB/LowLevel/DevChapter9.c diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.c b/LUFA/Drivers/USB/LowLevel/DevChapter9.c index f02d32ba3..6ecadb00d 100644 --- a/LUFA/Drivers/USB/LowLevel/DevChapter9.c +++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.c @@ -118,8 +118,6 @@ static void USB_Device_SetAddress(void) { Endpoint_ClearSETUP(); - while (!(Endpoint_IsINReady())); - Endpoint_ClearIN(); while (!(Endpoint_IsINReady())); @@ -165,7 +163,7 @@ static void USB_Device_SetConfiguration(void) void USB_Device_GetConfiguration(void) { - Endpoint_ClearSETUP(); + Endpoint_ClearSETUP(); Endpoint_Write_Byte(USB_ConfigurationNumber); @@ -299,7 +297,7 @@ static void USB_Device_ClearSetFeature(void) } else { - Endpoint_StallTransaction(); + Endpoint_StallTransaction(); } } } @@ -313,9 +311,6 @@ static void USB_Device_ClearSetFeature(void) Endpoint_ClearSETUP(); Endpoint_ClearIN(); - - while (!(Endpoint_IsOUTReceived())); - Endpoint_ClearOUT(); } #endif