- fixed errors occured after intendation command in fsm mechanism

This commit is contained in:
zolliker
2009-02-25 14:50:47 +00:00
parent e762ecb6a1
commit 69af09fe54
14 changed files with 63 additions and 23 deletions

11
ease.c
View File

@ -177,6 +177,15 @@ void EaseParHasChanged(void)
parameterChange = 1;
}
/*----------------------------------------------------------------------------*/
void EasePchk(void *drv)
{
int pc = FsmPc();
if (pc > 0) {
ParPrintf(drv, eError, "ERROR: illegal line in fsm %d", pc);
}
}
/*----------------------------------------------------------------------------*/
void EaseSavePars(void)
{
@ -313,6 +322,7 @@ static long EaseSendIt(long pc, void *object)
switch (pc) {
default: /* FSM BEGIN ****************************** */
EasePchk(eab);
EaseWrite(eab, eab->sendCmd);
ParPrintf(eab, eWarning, "send cmd> %s", eab->sendCmd);
eab->sendCmd = NULL;
@ -354,6 +364,7 @@ static long EaseIdle(long pc, void *object)
switch (pc) {
default: /* FSM BEGIN ****************************** */
EasePchk(eab);
idle:
if (!EaseCheckDoit(eab))