Add API support signature to the CDC and DFU class bootloaders, so that the applicati...
[pub/USBasp.git] / Demos / Host / ClassDriver / KeyboardHost / KeyboardHost.c
index abc038e..f2050e8 100644 (file)
@@ -140,7 +140,7 @@ void KeyboardHost_Task(void)
                        {
                                PressedKey = '\n';
                        }
-                       
+
                        if (PressedKey)
                          putchar(PressedKey);
                }
@@ -202,6 +202,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;
        }