]> git.sur5r.net Git - freertos/commitdiff
Bug fix in xTaskCheckForTimeOut() in the case where the tick count has incremented...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 12 Jan 2007 08:10:04 +0000 (08:10 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 12 Jan 2007 08:10:04 +0000 (08:10 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@59 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/tasks.c

index 0fcf4a89e706c2deed57c30fb4f8bb3af4be2d99..95131e156ad9ed7e60e8b5deaa896b7b6aca9034 100644 (file)
@@ -1540,7 +1540,7 @@ portBASE_TYPE xTaskCheckForTimeOut( xTimeOutType *pxTimeOut, portTickType *pxTic
 {\r
 portBASE_TYPE xReturn;\r
 \r
-    if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xTickCount > pxTimeOut->xTimeOnEntering ) )\r
+    if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xTickCount >= pxTimeOut->xTimeOnEntering ) )\r
     {\r
         /* The tick count is greater than the time at which vTaskSetTimeout() \r
                was called, but has also overflowed since vTaskSetTimeOut() was called.\r