- improvements in protocols and drivers
This commit is contained in:
10
ilmdriv.c
10
ilmdriv.c
@ -1,7 +1,7 @@
|
||||
/*---------------------------------------------------------------------------
|
||||
ilmdriv.c
|
||||
|
||||
Driver for the Oxford Instruments ILM503/ILM4 temperature controller
|
||||
Driver for the Oxford Instruments ILM200 series level monitor
|
||||
Version 2 (based on ease).
|
||||
|
||||
Markus Zolliker, April 2005
|
||||
@ -193,7 +193,8 @@ static long IlmStart(long pc, void *object)
|
||||
{
|
||||
Ilm *drv = ParCast(&ilmClass, object);
|
||||
EaseBase *eab = object;
|
||||
|
||||
char msg[256];
|
||||
|
||||
switch (pc) {
|
||||
default: /* FSM BEGIN ****************************** */
|
||||
EasePchk(drv);
|
||||
@ -201,10 +202,9 @@ static long IlmStart(long pc, void *object)
|
||||
return __LINE__;
|
||||
case __LINE__: /**********************************/
|
||||
if (0 != strncmp(eab->version, "ILM", 3)) {
|
||||
snprintf(eab->msg, sizeof eab->msg,
|
||||
snprintf(msg, sizeof msg,
|
||||
"unknown level meter version: %s", eab->version);
|
||||
ParPrintf(drv, eError, "ERROR: %s", eab->msg);
|
||||
EaseStop(eab);
|
||||
EaseStop(eab, msg);
|
||||
goto quit;
|
||||
}
|
||||
ParPrintf(drv, eLog, "connected to %s", eab->version);
|
||||
|
Reference in New Issue
Block a user