Enable Mass Storage bootloader builds in the BootloaderTest build test.
[pub/USBasp.git] / Projects / HIDReportViewer / HIDReportViewer.c
index 1dd2909..2250ddf 100644 (file)
@@ -1,13 +1,13 @@
 /*
              LUFA Library
 /*
              LUFA Library
-     Copyright (C) Dean Camera, 2012.
+     Copyright (C) Dean Camera, 2013.
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
-  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2013  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
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
@@ -89,7 +89,7 @@ int main(void)
  */
 void RetrieveDeviceData(void)
 {
  */
 void RetrieveDeviceData(void)
 {
-       if (USB_CurrentMode != USB_MODE_Host)
+       if (USB_HostState != HOST_STATE_Configured)
          return;
 
        LEDs_SetAllLEDs(LEDMASK_USB_BUSY);
          return;
 
        LEDs_SetAllLEDs(LEDMASK_USB_BUSY);