From c20a94a4e84c89debf5e7109482ede708a694a0c Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 23 Apr 2009 13:28:12 +0000 Subject: 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. --- Demos/Device/CDC/CDC.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Demos/Device/CDC') diff --git a/Demos/Device/CDC/CDC.c b/Demos/Device/CDC/CDC.c index 28bce1ebc..59aa98ceb 100644 --- a/Demos/Device/CDC/CDC.c +++ b/Demos/Device/CDC/CDC.c @@ -193,14 +193,14 @@ EVENT_HANDLER(USB_UnhandledControlPacket) 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(); -- cgit v1.2.3