diff options
author | László Monda <laci@monda.hu> | 2014-02-01 20:48:33 +0100 |
---|---|---|
committer | László Monda <laci@monda.hu> | 2014-02-01 20:48:33 +0100 |
commit | 987cd32f6502f074dcb565d67d0ee39149e8a4a8 (patch) | |
tree | f70b7658bee6334187118b6f9fae82202f7862b2 /LUFA | |
parent | b095177e2051cdc47620d770ce854c6e9ce3f912 (diff) | |
download | lufa-987cd32f6502f074dcb565d67d0ee39149e8a4a8.tar.gz lufa-987cd32f6502f074dcb565d67d0ee39149e8a4a8.tar.bz2 lufa-987cd32f6502f074dcb565d67d0ee39149e8a4a8.zip |
Fix ring buffer example.
Diffstat (limited to 'LUFA')
-rw-r--r-- | LUFA/Drivers/Misc/RingBuffer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/LUFA/Drivers/Misc/RingBuffer.h b/LUFA/Drivers/Misc/RingBuffer.h index 97648c806..68fdb8e92 100644 --- a/LUFA/Drivers/Misc/RingBuffer.h +++ b/LUFA/Drivers/Misc/RingBuffer.h @@ -70,11 +70,11 @@ * RingBuffer_InitBuffer(&Buffer, BufferData, sizeof(BufferData)); * * // Insert some data into the buffer - * RingBuffer_Insert(Buffer, 'H'); - * RingBuffer_Insert(Buffer, 'E'); - * RingBuffer_Insert(Buffer, 'L'); - * RingBuffer_Insert(Buffer, 'L'); - * RingBuffer_Insert(Buffer, 'O'); + * RingBuffer_Insert(&Buffer, 'H'); + * RingBuffer_Insert(&Buffer, 'E'); + * RingBuffer_Insert(&Buffer, 'L'); + * RingBuffer_Insert(&Buffer, 'L'); + * RingBuffer_Insert(&Buffer, 'O'); * * // Cache the number of stored bytes in the buffer * uint16_t BufferCount = RingBuffer_GetCount(&Buffer); |