From eeba38e343a299e12964aec15fd43108d3dc9130 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Fri, 15 May 2009 12:27:32 +0000 Subject: Create a new function pointer type in StreamCallbacks.h for endpoint/pipe stream callbacks, to make stream function prototypes clearer. --- Demos/Host/CDCHost/CDCHost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Demos') 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(); } -- cgit v1.2.3