mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
settings initially at UNINITIALIZED in eiger server
This commit is contained in:
parent
6adc373e18
commit
a7c180eb1c
Binary file not shown.
@ -130,7 +130,7 @@ int initDetector(){
|
|||||||
detectorGain[i] = default_gain_values[(int)STANDARD];
|
detectorGain[i] = default_gain_values[(int)STANDARD];
|
||||||
for(i=0;i<NOFFSET;i++)
|
for(i=0;i<NOFFSET;i++)
|
||||||
detectorOffset[i] = default_offset_values[(int)STANDARD];
|
detectorOffset[i] = default_offset_values[(int)STANDARD];
|
||||||
thisSettings = STANDARD;/**UNITIALIZED*/
|
thisSettings = UNINITIALIZED;
|
||||||
/*sChan=noneSelected;
|
/*sChan=noneSelected;
|
||||||
sChip=noneSelected;
|
sChip=noneSelected;
|
||||||
sMod=noneSelected;
|
sMod=noneSelected;
|
||||||
@ -731,7 +731,9 @@ int setThresholdEnergy(int ev, int imod){
|
|||||||
}
|
}
|
||||||
|
|
||||||
enum detectorSettings setSettings(enum detectorSettings sett, int imod){
|
enum detectorSettings setSettings(enum detectorSettings sett, int imod){
|
||||||
if(sett != GET_SETTINGS)
|
if(sett == UNINITIALIZED){
|
||||||
|
return thisSettings;
|
||||||
|
}if(sett != GET_SETTINGS)
|
||||||
thisSettings = sett;
|
thisSettings = sett;
|
||||||
return thisSettings;
|
return thisSettings;
|
||||||
}
|
}
|
||||||
|
@ -1932,6 +1932,7 @@ int set_module(int file_des) {
|
|||||||
case LOWGAIN:
|
case LOWGAIN:
|
||||||
case VERYHIGHGAIN:
|
case VERYHIGHGAIN:
|
||||||
case VERYLOWGAIN:
|
case VERYLOWGAIN:
|
||||||
|
case UNINITIALIZED:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
sprintf(mess,"This setting %d does not exist for this detector\n",myModule.reg);
|
sprintf(mess,"This setting %d does not exist for this detector\n",myModule.reg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user