- Implemented defpos for multiple motors
- Implemented automatic backup on parameter change - Implemented silent restore - Cleaned a couple of unused flags from connection object
This commit is contained in:
4
motor.c
4
motor.c
@ -149,7 +149,6 @@
|
||||
if(iRet != OKOK)
|
||||
{
|
||||
fVal = -9999999.99;
|
||||
SCSetError(pCon,iRet);
|
||||
}
|
||||
return fVal;
|
||||
}
|
||||
@ -546,6 +545,7 @@ extern void KillPiPiezo(void *pData);
|
||||
iRet = self->pDriver->SetDriverPar(self->pDriver,pCon,name,fVal);
|
||||
if(iRet == 1)
|
||||
{
|
||||
SCparChange(pCon);
|
||||
return iRet;
|
||||
}
|
||||
}
|
||||
@ -570,6 +570,7 @@ extern void KillPiPiezo(void *pData);
|
||||
fLimit = ObVal(self->ParArray,SLOW);
|
||||
fLimit -= fChange;
|
||||
ObParSet(self->ParArray,self->name,"softlowerlim",fLimit,pCon);
|
||||
SCparChange(pCon);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@ -591,6 +592,7 @@ extern void KillPiPiezo(void *pData);
|
||||
ObParInit(self->ParArray,SZERO,"softzero",ZEROINACTIVE,usUser);
|
||||
}
|
||||
}
|
||||
SCparChange(pCon);
|
||||
|
||||
return iRet;
|
||||
}
|
||||
|
Reference in New Issue
Block a user