- Improved motor error handling

SKIPPED:
	psi/tasutil.c
This commit is contained in:
cvs
2003-11-03 12:48:22 +00:00
parent dfffcb8bc4
commit 04bb17e56c
3 changed files with 150 additions and 7 deletions

View File

@ -859,7 +859,8 @@
int DevExecTask(void *pData)
{
pExeList self = NULL;
int iRet;
char pBueffel[132], pInterrupt[80];
int iRet, iInterrupt;
self = (pExeList)pData;
@ -875,11 +876,17 @@
switch(iRet)
{
case -1: /* some problem */
if(SCGetInterrupt(self->pOwner) != eContinue)
iInterrupt = SCGetInterrupt(self->pOwner);
if(iInterrupt != eContinue)
{
SCWrite(self->pOwner,"ERROR: aborting operation due to HW problem",
eError);
SCWrite(self->pOwner,pBueffel, eError);
if(iInterrupt > 1)
{
Interrupt2Text(iInterrupt,pInterrupt,79);
snprintf(pBueffel,131,"ERROR: interrupt %s triggered",
pInterrupt);
StopExe(self,"all");
}
#ifdef DEBUG
printf("DevExecTask found an error\n");
#endif