mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 00:57:44 -04:00
check operand, not destination
This commit is contained in:
parent
ae6c8bc9ed
commit
2a47bef91e
1 changed files with 4 additions and 4 deletions
8
queue.c
8
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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue