Correct the definition of StaticTask_t and add additional configASSERT() statements to catch future errors.

This commit is contained in:
Richard Barry 2016-09-14 08:21:24 +00:00
parent 40201bc253
commit 5c75e5a38a
4 changed files with 58 additions and 3 deletions

View file

@ -356,7 +356,7 @@ BaseType_t xReturn = pdFAIL;
{
/* Sanity check that the size of the structure used to declare a
variable of type StaticTimer_t equals the size of the real timer
structures. */
structure. */
volatile size_t xSize = sizeof( StaticTimer_t );
configASSERT( xSize == sizeof( Timer_t ) );
}