Add build tests to verify correct compilation of as many modules as possible under...
[pub/USBasp.git] / LUFA / Drivers / USB / Core / USBTask.c
index 3f95560..b0b6914 100644 (file)
@@ -7,7 +7,7 @@
 */
 
 /*
-  Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
@@ -52,8 +52,10 @@ void USB_USBTask(void)
        #else
                if (USB_CurrentMode == USB_MODE_Device)
                  USB_DeviceTask();
+               #if defined(USB_CAN_BE_HOST)
                else if (USB_CurrentMode == USB_MODE_Host)
                  USB_HostTask();
+               #endif
        #endif
 }