- fixed buggy assignment statements (== replaced by =)
This commit is contained in:
@ -401,7 +401,7 @@ void ItcStatus(Itc * drv)
|
|||||||
drv->h = ans[10] - '0';
|
drv->h = ans[10] - '0';
|
||||||
if (ans[11] == 'L' && drv->pidMode != 0
|
if (ans[11] == 'L' && drv->pidMode != 0
|
||||||
&& !EaseGetUpdate(drv, ITC_PIDMODE)) {
|
&& !EaseGetUpdate(drv, ITC_PIDMODE)) {
|
||||||
drv->pidMode == ans[12] - '0' + 1;
|
drv->pidMode = ans[12] - '0' + 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
drv->h = drv->controlChan;
|
drv->h = drv->controlChan;
|
||||||
|
4
lmd200.c
4
lmd200.c
@ -159,7 +159,7 @@ static void interpretLine(pSICSOBJ self, pLMD200 priv)
|
|||||||
case WAITDATA1:
|
case WAITDATA1:
|
||||||
if (strstr(priv->lineBuffer, "...0") == NULL) {
|
if (strstr(priv->lineBuffer, "...0") == NULL) {
|
||||||
/* this data is out of order, recover... */
|
/* this data is out of order, recover... */
|
||||||
priv->state == IDLE;
|
priv->state = IDLE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
storeData(self, 0, priv->lineBuffer);
|
storeData(self, 0, priv->lineBuffer);
|
||||||
@ -168,7 +168,7 @@ static void interpretLine(pSICSOBJ self, pLMD200 priv)
|
|||||||
case WAITDATA2:
|
case WAITDATA2:
|
||||||
if (strstr(priv->lineBuffer, "...0") == NULL) {
|
if (strstr(priv->lineBuffer, "...0") == NULL) {
|
||||||
/* this data is out of order, recover... */
|
/* this data is out of order, recover... */
|
||||||
priv->state == IDLE;
|
priv->state = IDLE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
storeData(self, 8, priv->lineBuffer);
|
storeData(self, 8, priv->lineBuffer);
|
||||||
|
@ -90,9 +90,7 @@ static float Lsc370Power(Lsc370 * drv, float percent)
|
|||||||
static void Lsc370ParDef(void *object)
|
static void Lsc370ParDef(void *object)
|
||||||
{
|
{
|
||||||
Lsc370 *drv = ParCast(&lsc370Class, object);
|
Lsc370 *drv = ParCast(&lsc370Class, object);
|
||||||
EaseBase *eab = object;
|
float power;
|
||||||
float power, maxPower;
|
|
||||||
int iRng;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
static char *heaterList[] = { "off",
|
static char *heaterList[] = { "off",
|
||||||
@ -290,7 +288,7 @@ static long Lsc370Read(long pc, void *object)
|
|||||||
drv->index = 0;
|
drv->index = 0;
|
||||||
chanLoop:
|
chanLoop:
|
||||||
if (drv->channel[drv->index] == 0) {
|
if (drv->channel[drv->index] == 0) {
|
||||||
drv->temp[drv->index] == PAR_NAN;
|
drv->temp[drv->index] = PAR_NAN;
|
||||||
goto noRead;
|
goto noRead;
|
||||||
}
|
}
|
||||||
snprintf(buf, sizeof buf, "RDGK?%d", drv->channel[drv->index]);
|
snprintf(buf, sizeof buf, "RDGK?%d", drv->channel[drv->index]);
|
||||||
@ -384,7 +382,7 @@ static long Lsc370Read(long pc, void *object)
|
|||||||
|
|
||||||
|
|
||||||
ParLog(drv);
|
ParLog(drv);
|
||||||
fsm_quit:return 0;
|
return 0;
|
||||||
} /* FSM END ******************************** */
|
} /* FSM END ******************************** */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@ int LscHandler(void *object)
|
|||||||
{
|
{
|
||||||
int iret, l;
|
int iret, l;
|
||||||
EaseBase *eab = EaseBaseCast(object);
|
EaseBase *eab = EaseBaseCast(object);
|
||||||
char *corr;
|
|
||||||
|
|
||||||
if (eab->state < EASE_idle)
|
if (eab->state < EASE_idle)
|
||||||
goto quit;
|
goto quit;
|
||||||
|
Reference in New Issue
Block a user