diff --git a/tasks.c b/tasks.c index ef1bde13f..072429183 100644 --- a/tasks.c +++ b/tasks.c @@ -4887,7 +4887,7 @@ TickType_t uxTaskResetEventItemValue( void ) /* Should not get here if all enums are handled. * Artificially force an assert by testing a value the * compiler can't assume is const. */ - configASSERT( pxTCB->ulNotifiedValue[ uxIndexToNotify ] == ~0UL ); + configASSERT( xTickCount == ( TickType_t ) 0 ); break; } @@ -5030,7 +5030,7 @@ TickType_t uxTaskResetEventItemValue( void ) /* Should not get here if all enums are handled. * Artificially force an assert by testing a value the * compiler can't assume is const. */ - configASSERT( pxTCB->ulNotifiedValue[ uxIndexToNotify ] == ~0UL ); + configASSERT( xTickCount == ( TickType_t ) 0 ); break; }