- small bug fixes on IGHDRIV

This commit is contained in:
2018-07-03 11:18:28 +02:00
parent be60bbed98
commit a22334180a
2 changed files with 6 additions and 0 deletions

View File

@ -393,6 +393,11 @@ static long IghRead(long pc, void *object)
float delta; float delta;
int up10, lo10; int up10, lo10;
if (eab->state == EASE_abort) {
eab->state = EASE_idle;
FsmRestartTask(eab->task, eab->idle);
return 0;
}
switch (pc) { switch (pc) {
default: /* FSM BEGIN ****************************** */ default: /* FSM BEGIN ****************************** */
EasePchk(drv); EasePchk(drv);

View File

@ -96,6 +96,7 @@ int OxiHandler(void *object)
} else { /* version (and therefore device) changed */ } else { /* version (and therefore device) changed */
eab->errCode = EASE_DEV_CHANGED; eab->errCode = EASE_DEV_CHANGED;
eab->state = EASE_idle; eab->state = EASE_idle;
eab->version[0] = '\0';
goto error; goto error;
} }
eab->state = EASE_idle; eab->state = EASE_idle;