From 704c0f796ac0250c92b929ae3faf029a5d4219e2 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Wed, 19 Aug 2015 16:56:17 +0200 Subject: [PATCH] reset acquiringDone before acquistion --- slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp b/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp index ba271d26b..f87959114 100644 --- a/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetectorUtils.cpp @@ -57,6 +57,9 @@ void slsDetectorUtils::acquire(int delflag){ if(setDynamicRange() == 32) subframe = 1; else subframe = 0; + pthread_mutex_lock(&mg); + acquiringDone = 0; + pthread_mutex_unlock(&mg); // setTotalProgress(); //moved these 2 here for measurement change