Corrected AudioInput and AudioOutput demos, to fix endpoint underflows due to roundin...
[pub/USBasp.git] / LUFA / Drivers / USB / LowLevel / Endpoint.c
index 273e190..aa18358 100644 (file)
@@ -28,7 +28,8 @@
   this software.\r
 */\r
 \r
-#include "USBMode.h"\r
+#include "../HighLevel/USBMode.h"\r
+\r
 #if defined(USB_CAN_BE_DEVICE)\r
 \r
 #define  INCLUDE_FROM_ENDPOINT_C\r
@@ -83,7 +84,7 @@ void Endpoint_ClearEndpoints(void)
 \r
 uint8_t Endpoint_WaitUntilReady(void)\r
 {\r
-       uint8_t TimeoutMSRem = USB_STREAM_TIMEOUT_MS;\r
+       uint16_t TimeoutMSRem = USB_STREAM_TIMEOUT_MS;\r
 \r
        USB_INT_Clear(USB_INT_SOFI);\r
 \r