diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-06 11:35:15 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-02-06 11:35:15 +0000 |
commit | 3a738fed208869c354fb07eb6b9aac768ad2f562 (patch) | |
tree | 6219a3a4db8cad634623ee857f5cb17460daec28 | |
parent | 58f6ed1b076bd013eaadc7bae7a704692a97b87f (diff) | |
download | ChibiOS-3a738fed208869c354fb07eb6b9aac768ad2f562.tar.gz ChibiOS-3a738fed208869c354fb07eb6b9aac768ad2f562.tar.bz2 ChibiOS-3a738fed208869c354fb07eb6b9aac768ad2f562.zip |
Fixed bug #701.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8841 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/src/hal_buffers.c | 2 | ||||
-rw-r--r-- | 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)
|