bug fix: loading trimbit file should not care about settings

This commit is contained in:
Dhanya Maliakal
2017-02-27 16:05:27 +01:00
parent 111f8beab3
commit 62de278f24
3 changed files with 3 additions and 2 deletions

View File

@ -6964,7 +6964,7 @@ int slsDetector::loadSettingsFile(string fname, int imod) {
myMod->module=im;
//settings is saved in myMod.reg for all except mythen
if(thisDetector->myDetectorType!=MYTHEN)
myMod->reg=thisDetector->currentSettings;
myMod->reg=-1;
setModule(*myMod,iodelay,tau,-1,0,0);
deleteModule(myMod);
} else
@ -7088,7 +7088,7 @@ int slsDetector::loadCalibrationFile(string fname, int imod) {
if((myMod=getModule(im))){
//extra gain and offset
if(thisDetector->nGain){
if(readCalibrationFile(fn,gainval, offsetval)==FAIL)
if(readCalibrationFile(fn, gainval, offsetval)==FAIL)
return FAIL;
} //normal gain and offset inside sls_detector_module
else{

View File

@ -1949,6 +1949,7 @@ int set_module(int file_des) {
#endif
#ifdef EIGERD
switch(myModule.reg){
case GET_SETTINGS:
case STANDARD:
case HIGHGAIN:
case LOWGAIN: