aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/USBtoSerial/USBtoSerial.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/USBtoSerial/USBtoSerial.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/USBtoSerial/USBtoSerial.c')
-rw-r--r--Demos/Device/USBtoSerial/USBtoSerial.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Demos/Device/USBtoSerial/USBtoSerial.c b/Demos/Device/USBtoSerial/USBtoSerial.c
index dbf4b1b0d6..ea8dcd5995 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();