- fixed errors occured after intendation command in fsm mechanism
This commit is contained in:
11
ease.c
11
ease.c
@ -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))
|
||||
|
Reference in New Issue
Block a user