- fixed a bug in pause handling of environment controller.

- added code to triple axis MAD emulation layer
This commit is contained in:
cvs
2000-12-21 07:55:04 +00:00
parent 513e2701f0
commit d3b8f38ced
15 changed files with 399 additions and 24 deletions

19
task.c
View File

@ -180,6 +180,20 @@
self->pCurrent = self->pHead;
}
}
/*-------------------------------------------------------------------------*/
static int TaskExist(pTaskMan self, long lID)
{
pTaskHead pCur = self->pHead;
while(pCur != NULL)
{
if(pCur->lID == lID)
{
return 1;
}
pCur = pCur->pNext;
}
return 0;
}
/*--------------------------------------------------------------------------*/
int TaskSchedule(pTaskMan self)
{
@ -252,6 +266,11 @@
else
{
IncrTaskPointer(self);
}
if(self->pCurrent == self->pHead)
{
if(!TaskExist(self,lID))
goto ente;
}
}