diff --git a/slsDetectorSoftware/slsDetector/slsDetector.cpp b/slsDetectorSoftware/slsDetector/slsDetector.cpp index 9b0fd752e..0f1988edc 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetector.cpp @@ -1791,9 +1791,6 @@ float slsDetector::setDAC(float val, dacIndex index, int imod){ std::cout<< "Set dac/pot/temp failed " << std::endl; } return retval; - - - }; @@ -2676,16 +2673,13 @@ detectorSettings slsDetector::setSettings( detectorSettings isettings, int imod) setModule(*myMod); } } - //all mods set gain here - setDAC(thisDetector->confGain,G_CONF_GAIN); - + //setting the gain for the dacs,read from the settings + if (thisDetector->myDetectorType==GOTTHARD) + setDAC(thisDetector->confGain,G_CONF_GAIN); } } deleteModule(myMod); - switch(thisDetector->myDetectorType){ - case GOTTHARD: - break; - default: + switch(thisDetector->myDetectorType==MYTHEN){ if (thisDetector->correctionMask&(1<