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/USBtoSerial | |
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/USBtoSerial')
-rw-r--r-- | Demos/Device/USBtoSerial/USBtoSerial.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Demos/Device/USBtoSerial/USBtoSerial.c b/Demos/Device/USBtoSerial/USBtoSerial.c index dbf4b1b0d..ea8dcd599 100644 --- a/Demos/Device/USBtoSerial/USBtoSerial.c +++ b/Demos/Device/USBtoSerial/USBtoSerial.c @@ -188,15 +188,15 @@ EVENT_HANDLER(USB_UnhandledControlPacket) break;
case REQ_SetControlLineState:
if (USB_ControlRequest.bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
- {
+ {
+ /* Acknowledge the SETUP packet, ready for data transfer */
+ Endpoint_ClearSETUP();
+
/* NOTE: Here you can read in the line state mask from the host, to get the current state of the output handshake
lines. The mask is read in from the wValue parameter in USB_ControlRequest, and can be masked against the
CONTROL_LINE_OUT_* masks to determine the RTS and DTR line states using the following code:
*/
-
- /* Acknowledge the SETUP packet, ready for data transfer */
- Endpoint_ClearSETUP();
-
+
/* Acknowledge status stage */
while (!(Endpoint_IsINReady()));
Endpoint_ClearIN();
|