diff --git a/Demo/PC/main.c b/Demo/PC/main.c index 0effc4435c..addc3a02d2 100644 --- a/Demo/PC/main.c +++ b/Demo/PC/main.c @@ -244,11 +244,18 @@ portTickType xWakeTime; portLONG lTimeDifference; const portCHAR *pcReceivedMessage; const portCHAR * const pcTaskBlockedTooLongMsg = "Print task blocked too long!\r\n"; +const portCHAR * const pcUnexpectedHookValueMsg = "Task hook has unexpected value!\r\n"; ( void ) pvParameters; /* Register our callback function. */ vTaskSetApplicationTaskTag( NULL, prvExampleTaskHook ); + + /* Just for test purposes. */ + if( xTaskGetApplicationTaskTag( NULL ) != prvExampleTaskHook ) + { + vPrintDisplayMessage( &pcUnexpectedHookValueMsg ); + } /* Loop continuously, blocking, then checking all the other tasks are still running, before blocking once again. This task blocks on the queue of