From: RichardBarry Date: Sat, 28 Jul 2007 18:41:53 +0000 (+0000) Subject: Results of testing new prvIsTaskSuspended() function. X-Git-Tag: V4.4.0~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ef3d2c0e72abd1b446201cbd3c1bdbc02ff7903d;p=freertos Results of testing new prvIsTaskSuspended() function. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@99 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/tasks.c b/Source/tasks.c index cab6a49e3..ff4bdcef6 100644 --- a/Source/tasks.c +++ b/Source/tasks.c @@ -977,7 +977,7 @@ static unsigned portBASE_TYPE uxTaskNumber = 0; /*lint !e956 Static is deliberat Suspended state? It is possible to be in the suspended list because it is blocked on a task with no timeout specified. */ - if( listIS_CONTAINED_WITHIN( NULL, &( pxTCB->xEventListItem ) ) != pdTRUE ) + if( listIS_CONTAINED_WITHIN( NULL, &( pxTCB->xEventListItem ) ) == pdTRUE ) { xReturn = pdTRUE; }