diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-10-18 11:23:23 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-10-18 11:23:23 +0000 |
commit | 738c9203fccfdcd11e4fc5bcb3ca4d102d15e1cd (patch) | |
tree | 32ca247b3b7abf59bd2c229a5a44ce0037b7cbf8 /LUFA/Drivers | |
parent | c6d6bdae0a6fa5604174428787ff3c415ca73fad (diff) | |
download | lufa-738c9203fccfdcd11e4fc5bcb3ca4d102d15e1cd.tar.gz lufa-738c9203fccfdcd11e4fc5bcb3ca4d102d15e1cd.tar.bz2 lufa-738c9203fccfdcd11e4fc5bcb3ca4d102d15e1cd.zip |
Fixed ring buffer size limited to 255 elements, instead of the intended 65535 elements.
Diffstat (limited to 'LUFA/Drivers')
-rw-r--r-- | LUFA/Drivers/Misc/RingBuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/Misc/RingBuffer.h b/LUFA/Drivers/Misc/RingBuffer.h index 3c5552143..5b509b605 100644 --- a/LUFA/Drivers/Misc/RingBuffer.h +++ b/LUFA/Drivers/Misc/RingBuffer.h @@ -113,7 +113,7 @@ uint8_t* Out; /**< Current retrieval location in the circular buffer. */ uint8_t* Start; /**< Pointer to the start of the buffer's underlying storage array. */ uint8_t* End; /**< Pointer to the end of the buffer's underlying storage array. */ - uint8_t Size; /**< Size of the buffer's underlying storage array. */ + uint16_t Size; /**< Size of the buffer's underlying storage array. */ uint16_t Count; /**< Number of bytes currently stored in the buffer. */ } RingBuffer_t; |