Added new RNDISHost Host LowLevel demo. Fixed misnamed Pipe_SetPipeToken() macro...
[pub/USBasp.git] / Projects / XPLAINBridge / XPLAINBridge.c
index 68cca54..6d2556e 100644 (file)
@@ -117,13 +117,17 @@ void SetupHardware(void)
 \r
        /* Hardware Initialization */\r
        SoftUART_Init();\r
 \r
        /* Hardware Initialization */\r
        SoftUART_Init();\r
+       LEDs_Init();\r
        USB_Init();\r
 }\r
 \r
 /** Event handler for the library USB Configuration Changed event. */\r
 void EVENT_USB_Device_ConfigurationChanged(void)\r
 {\r
        USB_Init();\r
 }\r
 \r
 /** Event handler for the library USB Configuration Changed event. */\r
 void EVENT_USB_Device_ConfigurationChanged(void)\r
 {\r
-       CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface);\r
+       LEDs_SetAllLEDs(LEDS_LED1);\r
+\r
+       if (!(CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface)))\r
+               LEDs_SetAllLEDs(LEDS_NO_LEDS);\r
 }\r
 \r
 /** Event handler for the library USB Unhandled Control Request event. */\r
 }\r
 \r
 /** Event handler for the library USB Unhandled Control Request event. */\r