Create a new function pointer type in StreamCallbacks.h for endpoint/pipe stream...
[pub/lufa.git] / LUFA / Drivers / USB / LowLevel / HostChapter9.c
index 4b96c69..238e099 100644 (file)
@@ -153,7 +153,11 @@ End_Of_Control_Send:
 \r
 static uint8_t USB_Host_Wait_For_Setup_IOS(const uint8_t WaitType)\r
 {\r
+       #if (USB_HOST_TIMEOUT_MS < 0xFF)\r
+       uint8_t  TimeoutCounter = USB_HOST_TIMEOUT_MS;  \r
+       #else\r
        uint16_t TimeoutCounter = USB_HOST_TIMEOUT_MS;\r
+       #endif\r
        \r
        while (!(((WaitType == USB_HOST_WAITFOR_SetupSent)  && Pipe_IsSETUPSent())  ||\r
                 ((WaitType == USB_HOST_WAITFOR_InReceived) && Pipe_IsINReceived()) ||\r