aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-12-20 11:49:55 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-12-20 11:49:55 +0000
commit380ffdcb4c242ed0f25982e3e5008f0df8f83790 (patch)
tree521cd8bddd618d4a340a3459387efb0b4b9c662e
parentb59b2d79daa1fed66792f6ac44b85766bda16c03 (diff)
downloadChibiOS-380ffdcb4c242ed0f25982e3e5008f0df8f83790.tar.gz
ChibiOS-380ffdcb4c242ed0f25982e3e5008f0df8f83790.tar.bz2
ChibiOS-380ffdcb4c242ed0f25982e3e5008f0df8f83790.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8627 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/src/hal_buffers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/src/hal_buffers.c b/os/hal/src/hal_buffers.c
index a06352c37..8e93d7700 100644
--- a/os/hal/src/hal_buffers.c
+++ b/os/hal/src/hal_buffers.c
@@ -277,8 +277,9 @@ size_t ibqReadTimeout(input_buffers_queue_t *ibqp, uint8_t *bp,
/* Handling the case where the system time went past the deadline,
in this case next becomes a very high number because the system
time is an unsigned type.*/
- if (next_timeout > timeout)
+ if (next_timeout > timeout) {
return MSG_TIMEOUT;
+ }
msg_t msg = ibqGetDataTimeoutI(ibqp, next_timeout);
if (msg != MSG_OK) {