diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-09-14 15:19:43 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-09-14 15:19:43 +0000 |
commit | 5f1428bb508e327986fab825dd9a824ba5d9c39c (patch) | |
tree | f9eb959e7aefd536fdf332be39fd7e8911482c08 /Demos/Host/LowLevel/AudioInputHost | |
parent | df14c97519f52f14fcc5b4aaadb504342ae9c696 (diff) | |
download | lufa-5f1428bb508e327986fab825dd9a824ba5d9c39c.tar.gz lufa-5f1428bb508e327986fab825dd9a824ba5d9c39c.tar.bz2 lufa-5f1428bb508e327986fab825dd9a824ba5d9c39c.zip |
Add error message for debugging purposes to the low level AudioInputHost and AudioOutputHost demos, if the request to set the audio sample rate fails.
Diffstat (limited to 'Demos/Host/LowLevel/AudioInputHost')
-rw-r--r-- | Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c b/Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c index a7332fbb8..2fb7c8281 100644 --- a/Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c +++ b/Demos/Host/LowLevel/AudioInputHost/AudioInputHost.c @@ -152,6 +152,9 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) /* Set the sample rate on the streaming interface endpoint */ if ((ErrorCode = USB_Host_SendControlRequest(&SampleRate)) != HOST_SENDCONTROL_Successful) { + printf_P(PSTR(ESC_FG_RED "Could not set requested Audio sample rate.\r\n" + " -- Error Code: %d\r\n" ESC_FG_WHITE), ErrorCode); + LEDs_SetAllLEDs(LEDMASK_USB_ERROR); USB_Host_SetDeviceConfiguration(0); return; |