- do not write "Counting finished" message in a tas scan

This commit is contained in:
zolliker
2009-11-10 10:34:52 +00:00
parent eb33c15016
commit 5e9d28037c

View File

@ -392,10 +392,10 @@ int DoCount(pCounter self, float fPreset, SConnection * pCon, int iBlock)
/* set Preset */
SetCounterPreset(self, fPreset);
if(iBlock){
level = RUNDRIVE;
} else {
if (iBlock == 0) {
level = RUNRUN;
} else {
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;
}