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;