diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-07-08 07:56:40 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-07-08 07:56:40 +0000 |
| commit | fa54581f86a9f2ab71dbddee22d3cfd0ed4a004b (patch) | |
| tree | f16c77375babc841d2b712a526b65cfb16199089 /Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c | |
| parent | fb73bc5482a49a70116ed59e38fca426b262929c (diff) | |
Add missing device deconfiguration-on-error statements to the host mode demos and projects.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1851 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c')
| -rw-r--r-- | Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c b/Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c index ab93721a..f789f631 100644 --- a/Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c +++ b/Demos/Host/ClassDriver/AudioInputHost/AudioInputHost.c @@ -174,6 +174,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) { puts_P(PSTR("Error Enabling Audio Stream.\r\n")); LEDs_SetAllLEDs(LEDMASK_USB_ERROR); + USB_Host_SetDeviceConfiguration(0); return; } @@ -184,6 +185,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) { puts_P(PSTR("Error Setting Audio Sampling Frequency.\r\n")); LEDs_SetAllLEDs(LEDMASK_USB_ERROR); + USB_Host_SetDeviceConfiguration(0); return; } |
