- Fixed irregularly occuring core dump bug.
This commit is contained in:
14
drive.c
14
drive.c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user