\r
static void prvHigherPriorityNormallyEmptyTask( void *pvParameters )\r
{\r
-unsigned portBASE_TYPE uxRxed, ux, uxTask1, uxTask2;\r
+unsigned portBASE_TYPE uxRxed, ux, uxTask1, uxTask2, uxErrorCount1 = 0, uxErrorCount2 = 0;\r
\r
/* The timer should not be started until after the scheduler has started.\r
More than one task is running this code so we check the parameter value\r
if( uxTask1 < intqMIN_ACCEPTABLE_TASK_COUNT )\r
{\r
/* Only task 2 seemed to log any values. */\r
- prvQueueAccessLogError( __LINE__ );\r
+ uxErrorCount1++;\r
+ if( uxErrorCount1 > 2 )\r
+ {\r
+ prvQueueAccessLogError( __LINE__ );\r
+ }\r
+ }\r
+ else\r
+ {\r
+ uxErrorCount1 = 0;\r
}\r
\r
if( uxTask2 < intqMIN_ACCEPTABLE_TASK_COUNT )\r
{\r
/* Only task 1 seemed to log any values. */\r
- prvQueueAccessLogError( __LINE__ );\r
+ uxErrorCount2++;\r
+ if( uxErrorCount2 > 2 )\r
+ {\r
+ prvQueueAccessLogError( __LINE__ );\r
+ }\r
+ }\r
+ else\r
+ {\r
+ uxErrorCount2 = 0;\r
}\r
\r
/* Clear the array again, ready to start a new cycle. */\r