From 2f7275ae9d45e81429604d8506dde35192c63d35 Mon Sep 17 00:00:00 2001 From: cvs Date: Thu, 16 Mar 2000 16:16:24 +0000 Subject: [PATCH] *** empty log message *** --- tecs/tecs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tecs/tecs.c b/tecs/tecs.c index 551c2144..cc18b2d8 100644 --- a/tecs/tecs.c +++ b/tecs/tecs.c @@ -443,6 +443,7 @@ int ReadTemp() { if (i!=4) ERR_MSG("bad answer 1"); tempX=WeightedAverage(nX, t4[0], t4[2]); tempP=WeightedAverage(nP, t4[1], t4[3]); + if (tempP==0.0) tempP=tempX; if (dirtyX==0 && dirtyP==0 && noResp==0 && tim>logTime) { t2[0]=tempX; t2[1]=tempP; @@ -698,7 +699,7 @@ int main(int argc, char *argv[]) } if ('l'==opt) { logIt=1; - period=1000; + period=5000; opt=' '; } else if ('s'==opt) { logfileStd=1;