- Enhanced and debugged histogram memory for AMOR
* added PROJECT both in HM and driver code * added single detector support. - Removed several bugs in the AMOR data bit. - Updated documentation
This commit is contained in:
21
status.c
21
status.c
@ -263,7 +263,9 @@
|
||||
/* now the wizardry */
|
||||
pOwner->pSock = pCon->pSock;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------*/
|
||||
static int motorSave = 0;
|
||||
/*-----------------------------------------------------------------------*/
|
||||
int BackupStatus(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
int argc, char *argv[])
|
||||
@ -280,7 +282,7 @@
|
||||
pFile = IFindOption(pSICSOptions,"statusfile");
|
||||
if(pFile)
|
||||
{
|
||||
iRet = WriteSicsStatus(pSics,pFile);
|
||||
iRet = WriteSicsStatus(pSics,pFile,motorSave);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -291,7 +293,20 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
iRet = WriteSicsStatus(pSics,argv[1]);
|
||||
if(strcmp(argv[1],"motorSave") == 0)
|
||||
{
|
||||
if(motorSave== 1)
|
||||
motorSave= 0;
|
||||
else
|
||||
motorSave= 1;
|
||||
sprintf(pBueffel,"New Value of motorSave= %d\n",motorSave);
|
||||
SCWrite(pCon,pBueffel,eValue);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
iRet = WriteSicsStatus(pSics,argv[1],motorSave);
|
||||
}
|
||||
}
|
||||
|
||||
if(!iRet)
|
||||
|
Reference in New Issue
Block a user