- improvements in protocols and drivers
This commit is contained in:
@ -285,7 +285,8 @@ static long HaakeStart(long pc, void *object)
|
||||
Haake *drv = ParCast(&haakeClass, object);
|
||||
EaseBase *eab = object;
|
||||
char unitcmd[8] = "W TE K";
|
||||
|
||||
char msg[256];
|
||||
|
||||
switch (pc) {
|
||||
default: /* FSM BEGIN ****************************** */
|
||||
EasePchk(drv);
|
||||
@ -293,10 +294,9 @@ static long HaakeStart(long pc, void *object)
|
||||
return __LINE__;
|
||||
case __LINE__: /**********************************/
|
||||
if (0 != strncmp(eab->version, "1P/H", 4)) {
|
||||
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 haake thermostat %s",
|
||||
|
Reference in New Issue
Block a user