- Reworked the connection object and the IO system

- Reworked the support for TRICS
- Added a second generation motor
This commit is contained in:
koennecke
2009-02-03 08:05:39 +00:00
parent f6d595665e
commit 361ee9ebea
119 changed files with 16455 additions and 3674 deletions

View File

@ -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