diff options
Diffstat (limited to 'os/hal/src/hal_buffers.c')
-rw-r--r-- | os/hal/src/hal_buffers.c | 3 |
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) {
|