Fixed incorrect/missing control status stage transfers on demos, bootloaders and...
[pub/USBasp.git] / Bootloaders / CDC / BootloaderCDC.c
index 60fe4a4..0add977 100644 (file)
@@ -167,6 +167,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
                                \r
                                Endpoint_ClearSetupIN();\r
                                \r
+                               /* Acknowledge status stage */\r
                                while (!(Endpoint_IsSetupOUTReceived()));\r
                                Endpoint_ClearSetupOUT();\r
                        }\r
@@ -184,6 +185,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
 \r
                                Endpoint_ClearSetupOUT();\r
 \r
+                               /* Acknowledge status stage */\r
                                while (!(Endpoint_IsSetupINReady()));\r
                                Endpoint_ClearSetupIN();\r
                        }\r
@@ -194,6 +196,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
                        {\r
                                Endpoint_ClearSetupReceived();\r
                                \r
+                               /* Acknowledge status stage */\r
                                while (!(Endpoint_IsSetupINReady()));\r
                                Endpoint_ClearSetupIN();\r
                        }\r