- 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

View File

@ -284,6 +284,9 @@ static long Lsc370Read(long pc, void *object)
switch (pc) {
default: /* FSM BEGIN ****************************** */
if (pc != 0) {
return -2;
}
drv->index = 0;
chanLoop:
if (drv->channel[drv->index] == 0) {
@ -393,6 +396,7 @@ static long Lsc370Start(long pc, void *object)
switch (pc) {
default: /* FSM BEGIN ****************************** */
EasePchk(drv);
EaseWrite(eab, "*IDN?");
return __LINE__;
case __LINE__: /**********************************/
@ -423,6 +427,7 @@ static long Lsc370Set(long pc, void *object)
switch (pc) {
default: /* FSM BEGIN ****************************** */
EasePchk(drv);
EaseWrite(eab, "MODE 1;MODE?"); /* remote mode */
return __LINE__;
case __LINE__: /**********************************/