Changed over manual loops waiting for endpoints to be ready to use the library Endpoi...
[pub/lufa.git] / LUFA / Drivers / USB / HighLevel / USBInterrupt.c
index a039dff..00fe7d1 100644 (file)
@@ -223,7 +223,7 @@ ISR(USB_GEN_vect, ISR_BLOCK)
 }\r
 \r
 #if defined(INTERRUPT_CONTROL_ENDPOINT)\r
-ISR(USB_COM_vect, ISR_NOBLOCK)\r
+ISR(USB_COM_vect, ISR_BLOCK)\r
 {\r
        uint8_t PrevSelectedEndpoint = Endpoint_GetCurrentEndpoint();\r
 \r
@@ -231,6 +231,6 @@ ISR(USB_COM_vect, ISR_NOBLOCK)
 \r
        USB_INT_Clear(USB_INT_ENDPOINT_SETUP);\r
        \r
-       Endpoint_SelectEndpoint(PrevSelectedEndpoint);  \r
+       Endpoint_SelectEndpoint(PrevSelectedEndpoint);\r
 }\r
 #endif\r