X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/afd828c095f38753e989391eab670b8736e4bd6e..a09e1cb53be78f2b1d387bb13f6dfcb62223faf7:/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c?ds=inline diff --git a/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c b/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c index 4cfaccdc3..b451362a1 100644 --- a/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c +++ b/Demos/Host/ClassDriver/MIDIHost/MIDIHost.c @@ -243,7 +243,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) /** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */ void EVENT_USB_Host_HostError(const uint8_t ErrorCode) { - USB_ShutDown(); + USB_Disable(); printf_P(PSTR(ESC_FG_RED "Host Mode Error\r\n" " -- Error Code %d\r\n" ESC_FG_WHITE), ErrorCode);