diff --git a/queue.c b/queue.c index 61d185840..5d46fccf7 100644 --- a/queue.c +++ b/queue.c @@ -1095,7 +1095,7 @@ Queue_t * const pxQueue = xQueue; { /* Increment the lock count so the task that unlocks the queue knows that data was posted while it was locked. */ - configASSERT( pxQueue->cTxLock != INT8_MAX ); + configASSERT( cTxLock != INT8_MAX ); pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 ); } @@ -1262,7 +1262,7 @@ Queue_t * const pxQueue = xQueue; { /* Increment the lock count so the task that unlocks the queue knows that data was posted while it was locked. */ - configASSERT( pxQueue->cTxLock != INT8_MAX ); + configASSERT( cTxLock != INT8_MAX ); pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 ); } @@ -1863,7 +1863,7 @@ Queue_t * const pxQueue = xQueue; { /* Increment the lock count so the task that unlocks the queue knows that data was removed while it was locked. */ - configASSERT( pxQueue->cRxLock != INT8_MAX ); + configASSERT( cRxLock != INT8_MAX ); pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 ); } @@ -2928,7 +2928,7 @@ Queue_t * const pxQueue = xQueue; } else { - configASSERT( pxQueueSetContainer->cTxLock != INT8_MAX ); + configASSERT( cTxLock != INT8_MAX ); pxQueueSetContainer->cTxLock = ( int8_t ) ( cTxLock + 1 ); }