diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-21 10:29:56 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-21 10:29:56 +0000 |
commit | 44179abcf85acb14fb3aff72ce50ae84281c0f2e (patch) | |
tree | 212a0d8015e32cb3909d5397b1d517b7c4f0ec83 /Demos/Host | |
parent | d0db78432fc02bacbd57cc9f15eb05b4e56981cb (diff) | |
download | lufa-44179abcf85acb14fb3aff72ce50ae84281c0f2e.tar.gz lufa-44179abcf85acb14fb3aff72ce50ae84281c0f2e.tar.bz2 lufa-44179abcf85acb14fb3aff72ce50ae84281c0f2e.zip |
Add PrinterHost demo to the documentation.
Diffstat (limited to 'Demos/Host')
-rw-r--r-- | Demos/Host/ClassDriver/CDCHost/CDCHost.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Demos/Host/ClassDriver/CDCHost/CDCHost.c b/Demos/Host/ClassDriver/CDCHost/CDCHost.c index 0c331bcde..65f490f28 100644 --- a/Demos/Host/ClassDriver/CDCHost/CDCHost.c +++ b/Demos/Host/ClassDriver/CDCHost/CDCHost.c @@ -75,8 +75,16 @@ int main(void) {
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
+ break;
}
+ if (USB_Host_SetDeviceConfiguration(1) != HOST_SENDCONTROL_Successful)
+ {
+ LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
+ USB_HostState = HOST_STATE_WaitForDeviceRemoval;
+ break;
+ }
+
USB_HostState = HOST_STATE_Configured;
break;
case HOST_STATE_Configured:
|