- Many fixes to accomodate a nitty picky TRICS wishlist
- Added a log facility to scan which includes a variable which is logged but not driven during a scan. - Fixed normal beam operation
This commit is contained in:
@ -191,6 +191,7 @@ static int ContextDo(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
|
||||
SCPushContext2(pCon,comCon);
|
||||
status = InterpExecute(pSics,pCon,command);
|
||||
SCWrite(pCon,"",eFinish);
|
||||
SCPopContext(pCon);
|
||||
return status;
|
||||
}
|
||||
@ -442,26 +443,18 @@ int SCWriteSycamore(SConnection *pCon, char *pBuffer, int iOut)
|
||||
char **argv = NULL;
|
||||
int argc;
|
||||
char *parser = "sycformat ";
|
||||
char batchName[50];
|
||||
strcpy(batchName,"::ansto::batch::next");
|
||||
CommandList *pCommand = NULL;
|
||||
|
||||
if(!SCVerifyConnection(pCon))
|
||||
{
|
||||
DeleteDynString(parseCmd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
comCon = SCGetContext(pCon);
|
||||
|
||||
if (strcmp(comCon.deviceID, batchName) == 0) {
|
||||
DeleteDynString(parseCmd);
|
||||
return 1;
|
||||
}
|
||||
/* Return 0 without dying if no message data */
|
||||
if(pBuffer == NULL)
|
||||
{
|
||||
DeleteDynString(parseCmd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user