/*
              LUFA Library
-     Copyright (C) Dean Camera, 2011.
+     Copyright (C) Dean Camera, 2012.
 
   dean [at] fourwalledcubicle [dot] com
            www.lufa-lib.org
 */
 
 /*
-  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
 {
        if (USB_HostState != HOST_STATE_Configured)
          return;
-       
+
        if (HID_Host_IsReportReceived(&Mouse_HID_Interface))
        {
                uint8_t MouseReport[Mouse_HID_Interface.State.LargestReportSize];
        {
                puts_P(PSTR("Error Setting Report Protocol Mode or Not a Valid Mouse.\r\n"));
                LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
+               USB_Host_SetDeviceConfiguration(0);
                return;
        }