- improvements in protocols and drivers

This commit is contained in:
zolliker
2012-06-19 07:19:03 +00:00
parent 6c69b59fce
commit 86d225a714
13 changed files with 243 additions and 95 deletions

View File

@ -405,7 +405,8 @@ static long Lsc370Start(long pc, void *object)
{
Lsc370 *drv = ParCast(&lsc370Class, object);
EaseBase *eab = object;
char msg[256];
switch (pc) {
default: /* FSM BEGIN ****************************** */
EasePchk(drv);
@ -413,10 +414,9 @@ static long Lsc370Start(long pc, void *object)
return __LINE__;
case __LINE__: /**********************************/
if (0 != strncmp(eab->version, "LSCI,MODEL370", 13)) {
snprintf(eab->msg, sizeof eab->msg,
snprintf(msg, sizeof msg,
"unknown temperature controller 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);