From 7727408b80ebe0311e1afbb0f2539a08637c544d Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 19 Jul 2012 14:58:21 +1000 Subject: [PATCH] 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 --- diffscan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diffscan.c b/diffscan.c index 8639134e..32252513 100644 --- a/diffscan.c +++ b/diffscan.c @@ -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 */