Fixed CDCHost not clearing configured endpoints and resetting configured endpoints...
[pub/lufa.git] / Demos / Device / RNDISEthernet / RNDISEthernet.c
index 96fef39..fd88ecf 100644 (file)
@@ -113,10 +113,6 @@ EVENT_HANDLER(USB_Disconnect)
 EVENT_HANDLER(USB_ConfigurationChanged)\r
 {\r
        /* Setup CDC Notification, Rx and Tx Endpoints */\r
-       Endpoint_ConfigureEndpoint(CDC_NOTIFICATION_EPNUM, EP_TYPE_INTERRUPT,\r
-                                      ENDPOINT_DIR_IN, CDC_NOTIFICATION_EPSIZE,\r
-                                  ENDPOINT_BANK_SINGLE);\r
-\r
        Endpoint_ConfigureEndpoint(CDC_TX_EPNUM, EP_TYPE_BULK,\r
                                       ENDPOINT_DIR_IN, CDC_TXRX_EPSIZE,\r
                                   ENDPOINT_BANK_SINGLE);\r
@@ -125,6 +121,10 @@ EVENT_HANDLER(USB_ConfigurationChanged)
                                       ENDPOINT_DIR_OUT, CDC_TXRX_EPSIZE,\r
                                   ENDPOINT_BANK_SINGLE);\r
 \r
+       Endpoint_ConfigureEndpoint(CDC_NOTIFICATION_EPNUM, EP_TYPE_INTERRUPT,\r
+                                      ENDPOINT_DIR_IN, CDC_NOTIFICATION_EPSIZE,\r
+                                  ENDPOINT_BANK_SINGLE);\r
+\r
        /* Indicate USB connected and ready */\r
        UpdateStatus(Status_USBReady);\r
 \r