diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-23 13:28:12 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-23 13:28:12 +0000 |
commit | c20a94a4e84c89debf5e7109482ede708a694a0c (patch) | |
tree | 94ec05a96fa7071bcb7eb60a30bc5ab246ef8cda /Demos/Device/KeyboardMouse | |
parent | 9cec85bfd92a77a97e7d12625897de2682dfacd7 (diff) | |
download | lufa-c20a94a4e84c89debf5e7109482ede708a694a0c.tar.gz lufa-c20a94a4e84c89debf5e7109482ede708a694a0c.tar.bz2 lufa-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/KeyboardMouse')
-rw-r--r-- | Demos/Device/KeyboardMouse/KeyboardMouse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Device/KeyboardMouse/KeyboardMouse.c b/Demos/Device/KeyboardMouse/KeyboardMouse.c index a85a3786d..dc039eec0 100644 --- a/Demos/Device/KeyboardMouse/KeyboardMouse.c +++ b/Demos/Device/KeyboardMouse/KeyboardMouse.c @@ -144,6 +144,8 @@ EVENT_HANDLER(USB_UnhandledControlPacket) case REQ_GetReport:
if (USB_ControlRequest.bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))
{
+ Endpoint_ClearSETUP();
+
/* Determine if it is the mouse or the keyboard data that is being requested */
if (!(USB_ControlRequest.wIndex))
{
@@ -156,8 +158,6 @@ EVENT_HANDLER(USB_UnhandledControlPacket) ReportSize = sizeof(MouseReportData);
}
- Endpoint_ClearSETUP();
-
/* Write the report data to the control endpoint */
Endpoint_Write_Control_Stream_LE(ReportData, ReportSize);
|