From 879b2c88644acad3c3903d89f56b153eea41c3db Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Mon, 27 Jul 2020 08:58:33 +0200 Subject: [PATCH] clean getThresholdTemp --- slsDetectorSoftware/src/Module.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/slsDetectorSoftware/src/Module.cpp b/slsDetectorSoftware/src/Module.cpp index 61409375c..2c6ddae7a 100644 --- a/slsDetectorSoftware/src/Module.cpp +++ b/slsDetectorSoftware/src/Module.cpp @@ -1274,12 +1274,8 @@ void Module::setQuad(const bool enable) { // Jungfrau Specific int Module::getThresholdTemperature() { - int arg = GET_FLAG; - auto retval = sendToDetectorStop(F_THRESHOLD_TEMP, arg); - if (retval != 0) { - retval /= 1000; - } - return retval; + auto retval = sendToDetectorStop(F_THRESHOLD_TEMP, GET_FLAG); + return retval / 1000; } void Module::setThresholdTemperature(int val) {