projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed USB_Device_SetHighSpeed() to USB_Device_SetFullSpeed() so that the correct...
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
CDC
/
CDC.c
diff --git
a/Demos/Device/ClassDriver/CDC/CDC.c
b/Demos/Device/ClassDriver/CDC/CDC.c
index
836a6e0
..
8e3530c
100644
(file)
--- a/
Demos/Device/ClassDriver/CDC/CDC.c
+++ b/
Demos/Device/ClassDriver/CDC/CDC.c
@@
-91,7
+91,8
@@
int main(void)
for (;;)
\r
{
\r
CheckJoystickMovement();
\r
for (;;)
\r
{
\r
CheckJoystickMovement();
\r
-
\r
+
\r
+ /* Must throw away unused bytes from the host, or it will lock up while waiting for the device */
\r
while (CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface))
\r
CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
\r
\r
while (CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface))
\r
CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
\r
\r