From 3a738fed208869c354fb07eb6b9aac768ad2f562 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 6 Feb 2016 11:35:15 +0000 Subject: Fixed bug #701. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8841 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/hal_buffers.c | 2 +- readme.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/os/hal/src/hal_buffers.c b/os/hal/src/hal_buffers.c index 2f4e0339c..e89147c9a 100644 --- a/os/hal/src/hal_buffers.c +++ b/os/hal/src/hal_buffers.c @@ -855,7 +855,7 @@ void obqFlush(output_buffers_queue_t *obqp) { /* If there is a buffer partially filled and not being written.*/ if (obqp->ptr != NULL) { - size_t size = (size_t)obqp->ptr - (size_t)obqp->bwrptr; + size_t size = (size_t)obqp->ptr - (size_t)obqp->bwrptr - sizeof (size_t); if (size > 0U) { obqPostFullBufferS(obqp, size); diff --git a/readme.txt b/readme.txt index 84a852e75..fbacd7d41 100644 --- a/readme.txt +++ b/readme.txt @@ -76,9 +76,10 @@ - RT: Removed the p_msg field from the thread_t structure saving a msg_t-sized field from the structure. Messages now use a new field into the p_u union. Now synchronous messages are even faster. +- HAL: Fixed error is buffer queues (bug #701)(backported to 16.1.3). - HAL: Fixed F105_F107 CANv1 build failure (bug #699). - HAL: Fixed typos in STM32F0 RCC enable/disable macros (bug #698)(backported - to 16.1.2). + to 16.1.3). - RT: Fixed useless call to chTMStartMeasurementX() in _thread_init() (bug #697)(backported to 3.0.6 and 16.1.3). - VAR: Fixed missing time conversion in lwIP arch module (bug #696) -- cgit v1.2.3