Fixed CDC demo not sending an empty packet after each transfer to prevent the host from buffering incomming data.
Altered Project and Bootloader makefiles so that the path to the LUFA library can be set in one place.
This commit is contained in:
parent
ed031c1df2
commit
350141e085
7 changed files with 74 additions and 47 deletions
|
@ -308,6 +308,12 @@ TASK(CDC_Task)
|
|||
|
||||
/* Finalize the stream transfer to send the last packet */
|
||||
Endpoint_ClearCurrentBank();
|
||||
|
||||
/* Wait until the endpoint is ready for another packet */
|
||||
while (!(Endpoint_ReadWriteAllowed()));
|
||||
|
||||
/* Send an empty packet to ensure that the host does not buffer data sent to it */
|
||||
Endpoint_ClearCurrentBank();
|
||||
}
|
||||
|
||||
/* Select the Serial Rx Endpoint */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue