diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-07-08 07:56:40 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-07-08 07:56:40 +0000 |
commit | d9c16402b9059628a9c45a129a99cae86b48aa5d (patch) | |
tree | f16c77375babc841d2b712a526b65cfb16199089 /Projects/Webserver/USBHostMode.c | |
parent | 137ce280c1e9c33e9393f1dfd6bb160c131bd1a4 (diff) | |
download | lufa-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 'Projects/Webserver/USBHostMode.c')
-rw-r--r-- | Projects/Webserver/USBHostMode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Projects/Webserver/USBHostMode.c b/Projects/Webserver/USBHostMode.c index 98467a1bb..1620cb5d8 100644 --- a/Projects/Webserver/USBHostMode.c +++ b/Projects/Webserver/USBHostMode.c @@ -120,6 +120,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) if (RNDIS_Host_InitializeDevice(&Ethernet_RNDIS_Interface_Host) != HOST_SENDCONTROL_Successful) { LEDs_SetAllLEDs(LEDMASK_USB_ERROR); + USB_Host_SetDeviceConfiguration(0); return; } @@ -128,6 +129,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) &PacketFilter, sizeof(PacketFilter)) != HOST_SENDCONTROL_Successful) { LEDs_SetAllLEDs(LEDMASK_USB_ERROR); + USB_Host_SetDeviceConfiguration(0); return; } @@ -135,6 +137,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) &MACAddress, sizeof(MACAddress)) != HOST_SENDCONTROL_Successful) { LEDs_SetAllLEDs(LEDMASK_USB_ERROR); + USB_Host_SetDeviceConfiguration(0); return; } |