projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add PrinterHost demo to the documentation.
[pub/lufa.git]
/
Demos
/
Host
/
ClassDriver
/
CDCHost
/
CDCHost.c
diff --git
a/Demos/Host/ClassDriver/CDCHost/CDCHost.c
b/Demos/Host/ClassDriver/CDCHost/CDCHost.c
index
0c331bc
..
65f490f
100644
(file)
--- a/
Demos/Host/ClassDriver/CDCHost/CDCHost.c
+++ b/
Demos/Host/ClassDriver/CDCHost/CDCHost.c
@@
-75,8
+75,16
@@
int main(void)
{
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
\r
{
\r
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
\r
+ break;
\r
}
\r
\r
}
\r
\r
+ if (USB_Host_SetDeviceConfiguration(1) != HOST_SENDCONTROL_Successful)
\r
+ {
\r
+ LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
\r
+ USB_HostState = HOST_STATE_WaitForDeviceRemoval;
\r
+ break;
\r
+ }
\r
+
\r
USB_HostState = HOST_STATE_Configured;
\r
break;
\r
case HOST_STATE_Configured:
\r
USB_HostState = HOST_STATE_Configured;
\r
break;
\r
case HOST_STATE_Configured:
\r