aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-07-08 07:56:40 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-07-08 07:56:40 +0000
commitd9c16402b9059628a9c45a129a99cae86b48aa5d (patch)
treef16c77375babc841d2b712a526b65cfb16199089 /Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
parent137ce280c1e9c33e9393f1dfd6bb160c131bd1a4 (diff)
downloadlufa-d9c16402b9059628a9c45a129a99cae86b48aa5d.tar.gz
lufa-d9c16402b9059628a9c45a129a99cae86b48aa5d.tar.bz2
lufa-d9c16402b9059628a9c45a129a99cae86b48aa5d.zip
Add missing device deconfiguration-on-error statements to the host mode demos and projects.
Diffstat (limited to 'Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c')
-rw-r--r--Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c b/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
index abc038e22..81c877afa 100644
--- a/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
+++ b/Demos/Host/ClassDriver/KeyboardHost/KeyboardHost.c
@@ -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;
}