Removed status setting from tasscan.c
This commit is contained in:
@ -744,7 +744,6 @@ static int TASScanCount(pScanData self, int iPoint)
|
|||||||
this is easy, just an ordinary scan, start a counter
|
this is easy, just an ordinary scan, start a counter
|
||||||
*/
|
*/
|
||||||
fVal = GetCounterPreset(self->pCounterData);
|
fVal = GetCounterPreset(self->pCounterData);
|
||||||
eOld = GetStatus();
|
|
||||||
status = DoCount(self->pCounterData, fVal, self->pCon, 2);
|
status = DoCount(self->pCounterData, fVal, self->pCon, 2);
|
||||||
iRet = Wait4Success(GetExecutor());
|
iRet = Wait4Success(GetExecutor());
|
||||||
if (iRet == DEVINT) {
|
if (iRet == DEVINT) {
|
||||||
@ -756,7 +755,6 @@ static int TASScanCount(pScanData self, int iPoint)
|
|||||||
} else {
|
} else {
|
||||||
status = 1;
|
status = 1;
|
||||||
}
|
}
|
||||||
SetStatus(eOld);
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user