diff --git a/slsDetectorSoftware/gotthardDetectorServer/mcb_funcs.h b/slsDetectorSoftware/gotthardDetectorServer/mcb_funcs.h index 2a5642d47..7049c1d4c 100755 --- a/slsDetectorSoftware/gotthardDetectorServer/mcb_funcs.h +++ b/slsDetectorSoftware/gotthardDetectorServer/mcb_funcs.h @@ -32,7 +32,7 @@ enum {VREF_DS, VCASCN_PB, VCASCP_PB, VOUT_CM, VCASC_OUT, VIN_CM, VREF_COMP, IB_T #define DACADDR {0,1,0,1,0,1,0,1,0,1,0,1,0,1} //Register Definitions for temp,hv,dac gain -enum {TEMP_ADC, TEMP_FPGA, HIGH_VOLTAGE, CONFGAIN}; +enum {TEMP_FPGA, TEMP_ADC, HIGH_VOLTAGE, CONFGAIN}; //dynamic range #define MAX5523 diff --git a/slsDetectorSoftware/gotthardDetectorServer/server_funcs.c b/slsDetectorSoftware/gotthardDetectorServer/server_funcs.c index a02343a71..343215d08 100755 --- a/slsDetectorSoftware/gotthardDetectorServer/server_funcs.c +++ b/slsDetectorSoftware/gotthardDetectorServer/server_funcs.c @@ -846,12 +846,12 @@ int set_dac(int fnum) { case G_IB_TESTC: idac=IB_TESTC; break; - case TEMPERATURE_ADC: - ireg=TEMP_ADC; - break; case TEMPERATURE_FPGA: ireg=TEMP_FPGA; break; + case TEMPERATURE_ADC: + ireg=TEMP_ADC; + break; case HV_POT: ireg=HIGH_VOLTAGE; break;