Fixed USB_RemoteWakeupEnabled flag never being set (the REMOTE WAKEUP Set Feature...
[pub/lufa.git] / Demos / Device / Keyboard / Keyboard.c
index 088943b..33545bf 100644 (file)
@@ -200,11 +200,11 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
                        {\r
                                USB_KeyboardReport_Data_t KeyboardReportData;\r
 \r
+                               Endpoint_ClearSETUP();\r
+       \r
                                /* Create the next keyboard report for transmission to the host */\r
                                CreateKeyboardReport(&KeyboardReportData);\r
 \r
-                               Endpoint_ClearSETUP();\r
-       \r
                                /* Write the report data to the control endpoint */\r
                                Endpoint_Write_Control_Stream_LE(&KeyboardReportData, sizeof(KeyboardReportData));\r
                                \r