- 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:
cvs
2003-02-19 08:29:46 +00:00
parent e6d39f3ac8
commit 98cfb3ddda
31 changed files with 491 additions and 101 deletions

View File

@ -354,6 +354,7 @@ static int motorSave = 0;
int iRights;
int iRet;
char *pFile = NULL;
writeFunc oldWrite;
assert(pSics);
assert(pCon);
@ -379,8 +380,18 @@ static int motorSave = 0;
iRights = SCGetRights(pCon);
pCon->iUserRights = usInternal;
oldWrite = SCGetWriteFunc(pCon);
SCSetWriteFunc(pCon,SCNotWrite);
iRet = InterpExecute(pSics,pCon,pBueffel);
SCSetWriteFunc(pCon,oldWrite);
pCon->iUserRights = iRights;
/*
if we do not override parameterChange here, the backup file
would be overwritten after each restore... Not the right thing
to do!
*/
pCon->parameterChange = 0;
SCSendOK(pCon);
return iRet;
}