for (Index = 0; Index < SCH_MAX_TASKS; Index++)
{
if (SCH_tasks[Index].pTask)
{
if (SCH_tasks[Index].delay_tick == 0)
{
SCH_tasks[Index].RunMe += 1; // Inc. the 'Run Me' flag
for (Index = 0; Index < SCH_MAX_TASKS; Index++)
{
if (SCH_tasks[Index].pTask)
{
if (SCH_tasks[Index].delay_tick == 0)
{
SCH_tasks[Index].RunMe += 1; // Inc. the 'Run Me' flag