if( xPortStartScheduler() != pdFALSE )
{
/* Should not reach here as if the scheduler is running the
function will not return. */
}
else
{
/* Should only reach here if a task calls xTaskEndScheduler(). */
}
}
/* This line will only be reached if the kernel could not be started. */
configASSERT( xReturn );
The corrected version, and btw. the comments where wrong as well:
xReturn = xPortStartScheduler();
if( xReturn != pdFALSE )
{
/* Should only reach here if a task calls xTaskEndScheduler(). */
}
else
{
/* Should not reach here as if the scheduler is running the
function will not return. */
}
}
/* This line will only be reached if the kernel could not be started. */
configASSERT( xReturn );
This has been tested and verified.
If you want a patch file drop me a note.
RegardsFriedl