From 738c9203fccfdcd11e4fc5bcb3ca4d102d15e1cd Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 18 Oct 2011 11:23:23 +0000 Subject: Fixed ring buffer size limited to 255 elements, instead of the intended 65535 elements. --- LUFA/Drivers/Misc/RingBuffer.h | 2 +- LUFA/ManPages/ChangeLog.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'LUFA') 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; diff --git a/LUFA/ManPages/ChangeLog.txt b/LUFA/ManPages/ChangeLog.txt index 1b3003f80..4bb153ce8 100644 --- a/LUFA/ManPages/ChangeLog.txt +++ b/LUFA/ManPages/ChangeLog.txt @@ -22,7 +22,7 @@ * * Fixed: * - Core: - * - None + * - Fixed ring buffer size limited to 255 elements, instead of the intended 65535 elements. * - Library Applications: * - Added reliability patches to the AVRISP-MKII Clone project's PDI/TPI protocols (thanks to Justin Mattair) * -- cgit v1.2.3