- Reworked the connection object and the IO system
- Reworked the support for TRICS - Added a second generation motor
This commit is contained in:
11
exebuf.c
11
exebuf.c
@ -197,7 +197,10 @@ int exeBufProcess(pExeBuf self, SicsInterp *pSics,
|
||||
cmdName[l] = '\0';
|
||||
if (FindCommand(pSics, cmdName) != NULL) {
|
||||
/* print only SICS commands */
|
||||
SCPrintf(pCon, eValue, "%s:%d>> %s",self->name,self->lineno,cmd);
|
||||
SCPrintf(pCon, eLog, "%s:%d>> %s",self->name,self->lineno,cmd);
|
||||
} else {
|
||||
/* debugging */
|
||||
/* SCPrintf(pCon, eValue, "%s:%d>> %s",self->name,self->lineno,cmd); */
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -209,11 +212,11 @@ int exeBufProcess(pExeBuf self, SicsInterp *pSics,
|
||||
Tcl Error
|
||||
*/
|
||||
if(strlen(pTcl->result) >= 2){
|
||||
SCWrite(pCon,pTcl->result,eError);
|
||||
SCPrintf(pCon,eLogError,"ERROR: Tcl reported: %s", pTcl->result);
|
||||
}
|
||||
SCWrite(pCon,"ERROR: Tcl error in block:",eError);
|
||||
SCWrite(pCon,"ERROR: Tcl error in block:",eLogError);
|
||||
SCWrite(pCon,GetCharArray(command),eError);
|
||||
SCWrite(pCon,"ERROR: end of Tcl error block",eError);
|
||||
SCWrite(pCon,"ERROR: end of Tcl error block",eLogError);
|
||||
} else {
|
||||
/*
|
||||
SICS error: has already been reported
|
||||
|
Reference in New Issue
Block a user