- Fixed problems at ANSTO

- Some missing files


SKIPPED:
	psi/amor2t.w
This commit is contained in:
cvs
2004-03-09 12:10:00 +00:00
parent abb48f4b10
commit f109d9a8c9
10 changed files with 57 additions and 40 deletions

View File

@ -520,6 +520,7 @@ int RS232Action(SConnection *pCon, SicsInterp *pSics,
prs232 self = NULL;
char pError[256];
char pBuffer[8192], pReply[8192];
char pTerm[10];
char *pPtr = NULL;
int iRet, iRead = 8191, count, i;
@ -576,11 +577,15 @@ int RS232Action(SConnection *pCon, SicsInterp *pSics,
else if(strcmp(argv[1],"replyterminator") == 0)
{
if(checkSet(pCon,argc,usMugger))
{
pPtr = decodeTerminator(argv[2]);
setRS232ReplyTerminator(self,pPtr);
if(pPtr)
free(pPtr);
{
memset(pTerm,0,10);
for(i = 2; i < argc;i++){
pPtr = decodeTerminator(argv[i]);
pTerm[i-2] = pPtr[0];
if(pPtr)
free(pPtr);
}
setRS232ReplyTerminator(self,pTerm);
SCSendOK(pCon);
return 1;
}