check operand, not destination

This commit is contained in:
David Chalco 2020-06-22 14:15:30 -07:00
parent ae6c8bc9ed
commit 2a47bef91e

View file

@ -1095,7 +1095,7 @@ Queue_t * const pxQueue = xQueue;
{ {
/* Increment the lock count so the task that unlocks the queue /* Increment the lock count so the task that unlocks the queue
knows that data was posted while it was locked. */ knows that data was posted while it was locked. */
configASSERT( pxQueue->cTxLock != INT8_MAX ); configASSERT( cTxLock != INT8_MAX );
pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 ); 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 /* Increment the lock count so the task that unlocks the queue
knows that data was posted while it was locked. */ knows that data was posted while it was locked. */
configASSERT( pxQueue->cTxLock != INT8_MAX ); configASSERT( cTxLock != INT8_MAX );
pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 ); 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 /* Increment the lock count so the task that unlocks the queue
knows that data was removed while it was locked. */ knows that data was removed while it was locked. */
configASSERT( pxQueue->cRxLock != INT8_MAX ); configASSERT( cRxLock != INT8_MAX );
pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 ); pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
} }
@ -2928,7 +2928,7 @@ Queue_t * const pxQueue = xQueue;
} }
else else
{ {
configASSERT( pxQueueSetContainer->cTxLock != INT8_MAX ); configASSERT( cTxLock != INT8_MAX );
pxQueueSetContainer->cTxLock = ( int8_t ) ( cTxLock + 1 ); pxQueueSetContainer->cTxLock = ( int8_t ) ( cTxLock + 1 );
} }