diff options
-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)
|