Add some initialisaton for each new scan, so we don't reuse old data
r3656 | dcl | 2012-07-19 14:58:21 +1000 (Thu, 19 Jul 2012) | 1 line
This commit is contained in:
@@ -178,6 +178,7 @@ static int StartDiffScan(pDiffScan self, pScanData pScan,
|
||||
self->scaleMonitor = (int)ObVal(self->parArray,DIFFMONITOR);
|
||||
self->normalizationScale = -1;
|
||||
pScan->iCounts = 0;
|
||||
pScan->iNP = 0;
|
||||
|
||||
/*
|
||||
get variable
|
||||
@@ -188,7 +189,8 @@ static int StartDiffScan(pDiffScan self, pScanData pScan,
|
||||
SCWrite(pCon,"ERROR: cannot access scan variable",eError);
|
||||
return 0;
|
||||
}
|
||||
|
||||
InitScanVar(pVar);
|
||||
|
||||
/*
|
||||
drive to start position
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user