aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-05-15 07:38:35 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-05-15 07:38:35 +0000
commitfabfdd454a11440a5789a70f6476889b02928438 (patch)
tree350db859d2c94fc39946d5bd421b71b9a9646065 /Demos/Device
parent32f0f605efa293430a47d60bb857695ff6937d21 (diff)
downloadlufa-fabfdd454a11440a5789a70f6476889b02928438.tar.gz
lufa-fabfdd454a11440a5789a70f6476889b02928438.tar.bz2
lufa-fabfdd454a11440a5789a70f6476889b02928438.zip
Fixed CDCHost not clearing configured endpoints and resetting configured endpoints mask when a partially enumerated invalid CDC interface is skipped.
Diffstat (limited to 'Demos/Device')
-rw-r--r--Demos/Device/RNDISEthernet/RNDISEthernet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demos/Device/RNDISEthernet/RNDISEthernet.c b/Demos/Device/RNDISEthernet/RNDISEthernet.c
index 96fef3992..fd88ecf89 100644
--- a/Demos/Device/RNDISEthernet/RNDISEthernet.c
+++ b/Demos/Device/RNDISEthernet/RNDISEthernet.c
@@ -113,10 +113,6 @@ EVENT_HANDLER(USB_Disconnect)
EVENT_HANDLER(USB_ConfigurationChanged)
{
/* Setup CDC Notification, Rx and Tx Endpoints */
- Endpoint_ConfigureEndpoint(CDC_NOTIFICATION_EPNUM, EP_TYPE_INTERRUPT,
- ENDPOINT_DIR_IN, CDC_NOTIFICATION_EPSIZE,
- ENDPOINT_BANK_SINGLE);
-
Endpoint_ConfigureEndpoint(CDC_TX_EPNUM, EP_TYPE_BULK,
ENDPOINT_DIR_IN, CDC_TXRX_EPSIZE,
ENDPOINT_BANK_SINGLE);
@@ -125,6 +121,10 @@ EVENT_HANDLER(USB_ConfigurationChanged)
ENDPOINT_DIR_OUT, CDC_TXRX_EPSIZE,
ENDPOINT_BANK_SINGLE);
+ Endpoint_ConfigureEndpoint(CDC_NOTIFICATION_EPNUM, EP_TYPE_INTERRUPT,
+ ENDPOINT_DIR_IN, CDC_NOTIFICATION_EPSIZE,
+ ENDPOINT_BANK_SINGLE);
+
/* Indicate USB connected and ready */
UpdateStatus(Status_USBReady);