- fixed buggy assignment statements (== replaced by =)

This commit is contained in:
zolliker
2009-02-27 08:00:04 +00:00
parent 5af2dd819d
commit 664bc91ac7
5 changed files with 7 additions and 10 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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 ******************************** */
} }

View File

@ -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;

View File

@ -1022,7 +1022,7 @@ void ParOut(char *buf)
if (endp != buf) { if (endp != buf) {
p = ParInt2Text(i); p = ParInt2Text(i);
} else { } else {
p == NULL; p = NULL;
} }
if (p == NULL) if (p == NULL)
p = ""; /* undefined */ p = ""; /* undefined */