From 5e9d28037c3e9821517f2db02fb1b1a8b97a5f14 Mon Sep 17 00:00:00 2001 From: zolliker Date: Tue, 10 Nov 2009 10:34:52 +0000 Subject: [PATCH] - do not write "Counting finished" message in a tas scan --- counter.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/counter.c b/counter.c index e37447f1..a5201971 100644 --- a/counter.c +++ b/counter.c @@ -392,10 +392,10 @@ int DoCount(pCounter self, float fPreset, SConnection * pCon, int iBlock) /* set Preset */ SetCounterPreset(self, fPreset); - if(iBlock){ - level = RUNDRIVE; + if (iBlock == 0) { + level = RUNRUN; } else { - level = RUNRUN; + level = RUNDRIVE; } iRet = StartDevice(GetExecutor(), self->name, self->pDes, self, pCon, level, fPreset); @@ -405,8 +405,8 @@ int DoCount(pCounter self, float fPreset, SConnection * pCon, int iBlock) return 0; } - /* continue only if in blocking mode */ - if (!iBlock) { + /* continue only if in blocking mode, or from tas scan (iBlock == 2) */ + if (iBlock != 1) { return 1; }