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/Joystick | |
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/Joystick')
-rw-r--r-- | Demos/Device/Joystick/Joystick.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Demos/Device/Joystick/Joystick.c b/Demos/Device/Joystick/Joystick.c index ee4bc6ad0..a5c3242fe 100644 --- a/Demos/Device/Joystick/Joystick.c +++ b/Demos/Device/Joystick/Joystick.c @@ -129,11 +129,11 @@ EVENT_HANDLER(USB_UnhandledControlPacket) {
USB_JoystickReport_Data_t JoystickReportData;
+ Endpoint_ClearSETUP();
+
/* Create the next HID report to send to the host */
GetNextReport(&JoystickReportData);
-
- Endpoint_ClearSETUP();
-
+
/* Write the report data to the control endpoint */
Endpoint_Write_Control_Stream_LE(&JoystickReportData, sizeof(JoystickReportData));
|