Add missing reference to the BootloaderAPI.S source file in the DFU and CDC class...
[pub/USBasp.git] / Demos / Host / ClassDriver / MouseHostWithParser / MouseHostWithParser.c
index b71554f..46105f3 100644 (file)
@@ -107,7 +107,7 @@ void MouseHost_Task(void)
 {
        if (USB_HostState != HOST_STATE_Configured)
          return;
-       
+
        if (HID_Host_IsReportReceived(&Mouse_HID_Interface))
        {
                uint8_t MouseReport[Mouse_HID_Interface.State.LargestReportSize];
@@ -215,6 +215,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
        {
                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;
        }