git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8627 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
Giovanni Di Sirio 2015-12-20 11:49:55 +00:00
parent b59b2d79da
commit 380ffdcb4c
1 changed files with 2 additions and 1 deletions

View File

@ -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) {