Fix broken Set Feature/Clear Feature chapter 9 request (incorrect status stage clearing).
[pub/USBasp.git] / LUFA / Drivers / USB / LowLevel / DevChapter9.c
index f02bb56..6ecadb0 100644 (file)
@@ -118,8 +118,6 @@ static void USB_Device_SetAddress(void)
 {\r
        Endpoint_ClearSETUP();\r
        \r
-       while (!(Endpoint_IsINReady()));\r
-       \r
        Endpoint_ClearIN();\r
        \r
        while (!(Endpoint_IsINReady()));\r
@@ -299,7 +297,7 @@ static void USB_Device_ClearSetFeature(void)
                                        }\r
                                        else\r
                                        {\r
-                                               Endpoint_StallTransaction();                                            \r
+                                               Endpoint_StallTransaction();\r
                                        }\r
                                }\r
                        }\r
@@ -313,9 +311,6 @@ static void USB_Device_ClearSetFeature(void)
        Endpoint_ClearSETUP();\r
 \r
        Endpoint_ClearIN();\r
-\r
-       while (!(Endpoint_IsOUTReceived()));\r
-       Endpoint_ClearOUT();\r
 }\r
 \r
 #endif\r