diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-05-15 12:27:32 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-05-15 12:27:32 +0000 |
commit | eeba38e343a299e12964aec15fd43108d3dc9130 (patch) | |
tree | 4ad58eb59a275db1102be49aba13a775617f1fa9 /Demos/Host | |
parent | 76d5e99bb8765030a7f99e7b5adf9bae7f92e0ba (diff) | |
download | lufa-eeba38e343a299e12964aec15fd43108d3dc9130.tar.gz lufa-eeba38e343a299e12964aec15fd43108d3dc9130.tar.bz2 lufa-eeba38e343a299e12964aec15fd43108d3dc9130.zip |
Create a new function pointer type in StreamCallbacks.h for endpoint/pipe stream callbacks, to make stream function prototypes clearer.
Diffstat (limited to 'Demos/Host')
-rw-r--r-- | Demos/Host/CDCHost/CDCHost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Host/CDCHost/CDCHost.c b/Demos/Host/CDCHost/CDCHost.c index b499a275e..a4194090a 100644 --- a/Demos/Host/CDCHost/CDCHost.c +++ b/Demos/Host/CDCHost/CDCHost.c @@ -246,7 +246,7 @@ TASK(USB_CDC_Host) {
/* Get the length of the pipe data, and create a new buffer to hold it */
uint16_t BufferLength = Pipe_BytesInPipe();
- uint8_t Buffer[BufferLength];
+ uint8_t Buffer[BufferLength];
/* Read in the pipe data to the temporary buffer */
Pipe_Read_Stream_LE(Buffer, BufferLength);
@@ -267,7 +267,7 @@ TASK(USB_CDC_Host) /* Check if a packet has been received */
if (Pipe_IsINReceived())
{
- /* Discard the event notification */
+ /* Discard the unused event notification */
Pipe_ClearIN();
}
|