Device mode class driver callbacks are now fired before the control request status...
[pub/USBasp.git] / Projects / XPLAINBridge / XPLAINBridge.c
index 7ca94b2..5457a22 100644 (file)
@@ -81,6 +81,7 @@ int main(void)
        Buffer_Initialize(&UARTtoUSB_Buffer);\r
 \r
        LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);\r
+       sei();\r
 \r
        for (;;)\r
        {\r
@@ -191,7 +192,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
                                                                                                    ENDPOINT_DIR_OUT, AVRISP_DATA_EPSIZE,\r
                                                                                                    ENDPOINT_BANK_SINGLE);\r
 \r
-               #if defined(WIN_LIBUSB_COMPAT)\r
+               #if defined(LIBUSB_FILTERDRV_COMPAT)\r
                EndpointConfigSuccess &= Endpoint_ConfigureEndpoint(AVRISP_DATA_IN_EPNUM, EP_TYPE_BULK,\r
                                                                    ENDPOINT_DIR_IN, AVRISP_DATA_EPSIZE,\r
                                                                    ENDPOINT_BANK_SINGLE);\r