- Fixed irregularly occuring core dump bug.

This commit is contained in:
cvs
2000-07-26 08:00:29 +00:00
parent 5f5aface14
commit 0a3e457c96
7 changed files with 77 additions and 49 deletions

14
drive.c
View File

@ -253,6 +253,7 @@
pMotor pMot = NULL;
float fPos;
int iRet;
char pBueffel[132];
/*
treat motors separatetly in order to correct for zero points
@ -282,7 +283,18 @@
if(pDes)
{
pInt = pDes->GetInterface(pDum,DRIVEID);
return pInt->GetValue(pDum,pCon);
if(!pInt)
{
sprintf(pBueffel,
"ERROR: internal error in findPosition for %s",
name);
SCWrite(pCon,pBueffel,eError);
return -999.99;
}
else
{
return pInt->GetValue(pDum,pCon);
}
}
}
}