clean getThresholdTemp

This commit is contained in:
Erik Frojdh 2020-07-27 08:58:33 +02:00
parent bad7fd3906
commit 879b2c8864

View File

@ -1274,12 +1274,8 @@ void Module::setQuad(const bool enable) {
// Jungfrau Specific
int Module::getThresholdTemperature() {
int arg = GET_FLAG;
auto retval = sendToDetectorStop<int>(F_THRESHOLD_TEMP, arg);
if (retval != 0) {
retval /= 1000;
}
return retval;
auto retval = sendToDetectorStop<int>(F_THRESHOLD_TEMP, GET_FLAG);
return retval / 1000;
}
void Module::setThresholdTemperature(int val) {