From 380ffdcb4c242ed0f25982e3e5008f0df8f83790 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 20 Dec 2015 11:49:55 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8627 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/hal_buffers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'os/hal/src') 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) { -- cgit v1.2.3