aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/GenericHID
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-04-23 13:28:12 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-04-23 13:28:12 +0000
commitc20a94a4e84c89debf5e7109482ede708a694a0c (patch)
tree94ec05a96fa7071bcb7eb60a30bc5ab246ef8cda /Demos/Device/GenericHID
parent9cec85bfd92a77a97e7d12625897de2682dfacd7 (diff)
downloadlufa-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/GenericHID')
-rw-r--r--Demos/Device/GenericHID/GenericHID.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demos/Device/GenericHID/GenericHID.c b/Demos/Device/GenericHID/GenericHID.c
index 245ddaafc..695342d0e 100644
--- a/Demos/Device/GenericHID/GenericHID.c
+++ b/Demos/Device/GenericHID/GenericHID.c
@@ -165,10 +165,10 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
case REQ_GetReport:
if (USB_ControlRequest.bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))
{
+ uint8_t GenericData[GENERIC_REPORT_SIZE];
+
Endpoint_ClearSETUP();
- uint8_t GenericData[GENERIC_REPORT_SIZE];
-
CreateGenericHIDReport(GenericData);
/* Write the report data to the control endpoint */
@@ -182,13 +182,13 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
case REQ_SetReport:
if (USB_ControlRequest.bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
{
+ uint8_t GenericData[GENERIC_REPORT_SIZE];
+
Endpoint_ClearSETUP();
/* Wait until the generic report has been sent by the host */
while (!(Endpoint_IsOUTReceived()));
- uint8_t GenericData[GENERIC_REPORT_SIZE];
-
Endpoint_Read_Control_Stream_LE(&GenericData, sizeof(GenericData));
ProcessGenericHIDReport(GenericData);