X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/05fa6e0c43e542459000c7ebe0b10cbe24c7f5d9..5251bc6e4e312ec5c4f57c43a92ba49c19684c51:/Demos/Host/ClassDriver/CDCHost/CDCHost.c?ds=inline diff --git a/Demos/Host/ClassDriver/CDCHost/CDCHost.c b/Demos/Host/ClassDriver/CDCHost/CDCHost.c index 7881d3cb1..4479e4fb8 100644 --- a/Demos/Host/ClassDriver/CDCHost/CDCHost.c +++ b/Demos/Host/ClassDriver/CDCHost/CDCHost.c @@ -76,6 +76,8 @@ int main(void) if (CDC_Host_ConfigurePipes(&VirtualSerial_CDC_Interface, 512) != CDC_ENUMERROR_NoError) { + printf("Attached device is not a valid CDC device.\r\n"); + LEDs_SetAllLEDs(LEDMASK_USB_ERROR); USB_HostState = HOST_STATE_WaitForDeviceRemoval; break; @@ -83,11 +85,14 @@ int main(void) if (USB_Host_SetDeviceConfiguration(1) != HOST_SENDCONTROL_Successful) { + printf("Error Setting Device Configuration.\r\n"); + LEDs_SetAllLEDs(LEDMASK_USB_ERROR); USB_HostState = HOST_STATE_WaitForDeviceRemoval; break; } + printf("CDC Device Enumerated.\r\n"); USB_HostState = HOST_STATE_Configured; break; case HOST_STATE_Configured: