This commit is contained in:
cvs
2004-06-15 06:26:18 +00:00
parent 961a0227a3
commit 2a49eb287c

View File

@ -114,8 +114,11 @@
self->fTarget = atof(result); self->fTarget = atof(result);
iRet=CocGet(pMe->pData,"tlimit",result); /* get parameter */ iRet=CocGet(pMe->pData,"tlimit",result); /* get parameter */
if (iRet<0) goto Error; if (iRet<0) goto Error;
fVal = atof(result); iRet = EVCGetPar(self, "upperlimit", &fVal);
iRet = EVCSetPar(self, "upperlimit", fVal,pCon); if (abs(fVal - atof(result)) > 1.0e-4 * abs(fVal)) {
fVal = atof(result);
iRet = EVCSetPar(self, "upperlimit", fVal,pCon);
}
iRet = EVControlWrapper(pCon,pSics,pData,argc,argv); iRet = EVControlWrapper(pCon,pSics,pData,argc,argv);
if (iRet != 0) { if (iRet != 0) {
iRet=CocGet(pMe->pData,"status",result); /* show status */ iRet=CocGet(pMe->pData,"status",result); /* show status */