X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/137ce280c1e9c33e9393f1dfd6bb160c131bd1a4..77a9df36a77d2523dd2bc24fa17f9f04c6c175c5:/Projects/Webserver/USBHostMode.c 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; }