- do not write "Counting finished" message in a tas scan
This commit is contained in:
10
counter.c
10
counter.c
@ -392,10 +392,10 @@ int DoCount(pCounter self, float fPreset, SConnection * pCon, int iBlock)
|
|||||||
/* set Preset */
|
/* set Preset */
|
||||||
SetCounterPreset(self, fPreset);
|
SetCounterPreset(self, fPreset);
|
||||||
|
|
||||||
if(iBlock){
|
if (iBlock == 0) {
|
||||||
level = RUNDRIVE;
|
level = RUNRUN;
|
||||||
} else {
|
} else {
|
||||||
level = RUNRUN;
|
level = RUNDRIVE;
|
||||||
}
|
}
|
||||||
iRet = StartDevice(GetExecutor(), self->name, self->pDes, self, pCon,
|
iRet = StartDevice(GetExecutor(), self->name, self->pDes, self, pCon,
|
||||||
level, fPreset);
|
level, fPreset);
|
||||||
@ -405,8 +405,8 @@ int DoCount(pCounter self, float fPreset, SConnection * pCon, int iBlock)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* continue only if in blocking mode */
|
/* continue only if in blocking mode, or from tas scan (iBlock == 2) */
|
||||||
if (!iBlock) {
|
if (iBlock != 1) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user