diff --git a/slsDetectorSoftware/commonFiles/sls_detector_defs.h b/slsDetectorSoftware/commonFiles/sls_detector_defs.h index ab1e24ad6..4d55f5b6b 100755 --- a/slsDetectorSoftware/commonFiles/sls_detector_defs.h +++ b/slsDetectorSoftware/commonFiles/sls_detector_defs.h @@ -348,7 +348,8 @@ enum dacIndex { E_Vcn, /**< eiger */ E_Vis, /**< eiger */ IO_DELAY, /**< eiger io delay */ - ADC_VPP /**< adc vpp for jctb */ + ADC_VPP, /**< adc vpp for jctb */ + HV_NEW /**< new hv index for jungfrau & c */ }; /** diff --git a/slsDetectorSoftware/slsDetector/slsDetector.cpp b/slsDetectorSoftware/slsDetector/slsDetector.cpp index 310bca9f0..8fdc21b87 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetector.cpp @@ -2216,6 +2216,11 @@ dacs_t slsDetector::setDAC(dacs_t val, dacIndex index, int mV, int imod){ int ret=FAIL; char mess[100]; int arg[3]; + + + if ( (thisDetector->myDetectorType != GOTTHARD) && (thisDetector->myDetectorType != PROPIX) && index==HV_POT) + index=HV_NEW; + arg[0]=index; arg[1]=imod; arg[2]=mV;