- Removed SCStart/EndBuffering as far as possible and fixed an issue with
the capture command in that it not put resluts into the Tcl interpreter. This broke scriptcontext scripts in complicated situations. - Resolved some issues with the TAS calculation and negative scattering sense. - Fixed a bug which did not reset the state to idle after checking reachability in confvirtualmot.c SKIPPED: psi/autowin.c psi/eigera2.c psi/jvlprot.c psi/makefile_linux psi/sinqhttpopt.c psi/tasscan.c
This commit is contained in:
8
drive.c
8
drive.c
@ -274,6 +274,7 @@ int DriveWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
double dTarget;
|
||||
char pBueffel[512];
|
||||
Status eOld;
|
||||
char *error = NULL;
|
||||
|
||||
assert(pCon);
|
||||
assert(pSics);
|
||||
@ -318,8 +319,13 @@ int DriveWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
}
|
||||
iRet = Start2Run(pCon, pSics, argv[i], RUNDRIVE, dTarget);
|
||||
if (!iRet) {
|
||||
snprintf(pBueffel, 511,"ERROR: cannot run %s to %s", argv[i],
|
||||
error = Tcl_GetStringResult(tcl_interp);
|
||||
if(error != NULL) {
|
||||
snprintf(pBueffel, 511,"%s", error);
|
||||
} else {
|
||||
snprintf(pBueffel, 511,"ERROR: cannot run %s to %s", argv[i],
|
||||
argv[i + 1]);
|
||||
}
|
||||
SCWrite(pCon, pBueffel, eError);
|
||||
StopExe(GetExecutor(), "ALL");
|
||||
SetStatus(eOld);
|
||||
|
Reference in New Issue
Block a user