aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/Keyboard/Keyboard.c
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-04-23 13:28:12 +0000
committerDean Camera <[email protected]>2009-04-23 13:28:12 +0000
commitc20a94a4e84c89debf5e7109482ede708a694a0c (patch)
tree94ec05a96fa7071bcb7eb60a30bc5ab246ef8cda /Demos/Device/Keyboard/Keyboard.c
parent9cec85bfd92a77a97e7d12625897de2682dfacd7 (diff)
downloadqmk_firmware-c20a94a4e84c89debf5e7109482ede708a694a0c.tar.gz
qmk_firmware-c20a94a4e84c89debf5e7109482ede708a694a0c.zip
Fixed USB_RemoteWakeupEnabled flag never being set (the REMOTE WAKEUP Set Feature request was not being handled).
Renamed the FEATURELESS_CONTROL_ONLY_DEVICE compile-time token to CONTROL_ONLY_DEVICE.
Diffstat (limited to 'Demos/Device/Keyboard/Keyboard.c')
-rw-r--r--Demos/Device/Keyboard/Keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Device/Keyboard/Keyboard.c b/Demos/Device/Keyboard/Keyboard.c
index 088943bce6..33545bff6c 100644
--- a/Demos/Device/Keyboard/Keyboard.c
+++ b/Demos/Device/Keyboard/Keyboard.c
@@ -200,11 +200,11 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
{
USB_KeyboardReport_Data_t KeyboardReportData;
+ Endpoint_ClearSETUP();
+
/* Create the next keyboard report for transmission to the host */
CreateKeyboardReport(&KeyboardReportData);
- Endpoint_ClearSETUP();
-
/* Write the report data to the control endpoint */
Endpoint_Write_Control_Stream_LE(&KeyboardReportData, sizeof(KeyboardReportData));