From 9629c20d0c81524f421631e4b7cbbb27183e4bfe Mon Sep 17 00:00:00 2001 From: zolliker Date: Thu, 26 Apr 2007 14:47:22 +0000 Subject: [PATCH] suppress irritating message --- evcontroller.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/evcontroller.c b/evcontroller.c index 9baa4071..fb13c318 100644 --- a/evcontroller.c +++ b/evcontroller.c @@ -292,9 +292,9 @@ if (self->lastt > 0) { /* increase tol for hysteresis */ tol=tol*1.1001; } + tmo = (int)(ObVal(self->pParam, SETTLE)); if(fDelta <= tol) /* inside tolerance */ { - tmo = (int)(ObVal(self->pParam, SETTLE)); if (self->lastt <= 0) /* lastt negative: -seconds already waited */ { self->lastt += now; @@ -319,9 +319,11 @@ else { if (self->lastt > 0) { /* save time already waited */ - sprintf(pBueffel,"%s outside tolerance, settling time suspended", - self->pName); - SCWrite(pCon,pBueffel,eWarning); + if (tmo > 0) { + sprintf(pBueffel,"%s outside tolerance, settling time suspended", + self->pName); + SCWrite(pCon,pBueffel,eWarning); + } self->lastt -= now; } notifyStatus(self, pCon, HWBusy);