From db2e75460e8b6e090f788c62d71c3bd225422260 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Fri, 12 Feb 2016 17:26:14 +0100 Subject: [PATCH] fixed bug of wrong number of frames in receiver when server starts --- slsDetectorSoftware/slsDetector/slsDetector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorSoftware/slsDetector/slsDetector.cpp b/slsDetectorSoftware/slsDetector/slsDetector.cpp index 0cc50b0db..7b5699329 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetector.cpp @@ -3943,7 +3943,7 @@ int64_t slsDetector::setTimer(timerIndex index, int64_t t){ std::cout << "Setting/Getting number of frames " << index <<" to/from receiver " << args[1] << std::endl; #endif args[0] = FRAME_NUMBER; - retval = thisDetector->timerValue[FRAME_NUMBER]*thisDetector->timerValue[CYCLES_NUMBER]; + retval = abs(thisDetector->timerValue[FRAME_NUMBER]*thisDetector->timerValue[CYCLES_NUMBER]); if(args[1] != -1) args[1]=retval; }else{ #ifdef VERBOSE