suppress irritating message

This commit is contained in:
zolliker
2007-04-26 14:47:22 +00:00
parent 569b61d2f1
commit 9629c20d0c

View File

@ -292,9 +292,9 @@
if (self->lastt > 0) { /* increase tol for hysteresis */ if (self->lastt > 0) { /* increase tol for hysteresis */
tol=tol*1.1001; tol=tol*1.1001;
} }
tmo = (int)(ObVal(self->pParam, SETTLE));
if(fDelta <= tol) /* inside tolerance */ if(fDelta <= tol) /* inside tolerance */
{ {
tmo = (int)(ObVal(self->pParam, SETTLE));
if (self->lastt <= 0) /* lastt negative: -seconds already waited */ if (self->lastt <= 0) /* lastt negative: -seconds already waited */
{ {
self->lastt += now; self->lastt += now;
@ -319,9 +319,11 @@
else else
{ {
if (self->lastt > 0) { /* save time already waited */ if (self->lastt > 0) { /* save time already waited */
sprintf(pBueffel,"%s outside tolerance, settling time suspended", if (tmo > 0) {
self->pName); sprintf(pBueffel,"%s outside tolerance, settling time suspended",
SCWrite(pCon,pBueffel,eWarning); self->pName);
SCWrite(pCon,pBueffel,eWarning);
}
self->lastt -= now; self->lastt -= now;
} }
notifyStatus(self, pCon, HWBusy); notifyStatus(self, pCon, HWBusy);