Add missing device deconfiguration-on-error statements to the host mode demos and...
[pub/USBasp.git] / Demos / Host / ClassDriver / MouseHost / MouseHost.c
index 5c94ecd..ebdc4e2 100644 (file)
@@ -185,6 +185,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
        {
                puts_P(PSTR("Could not Set Boot Protocol Mode.\r\n"));
                LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
+               USB_Host_SetDeviceConfiguration(0);
                return;
        }