Merge pull request #343 from slsdetectorgroup/ctbslowadc

fix for slow adcs and any other adcs that went to stop server, but ne…
This commit is contained in:
Dhanya Thattil 2022-01-20 17:23:55 +01:00 committed by GitHub
commit 062ab63289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -690,7 +690,23 @@ void Module::setImageTestMode(const int value) {
}
int Module::getADC(dacIndex index) const {
return sendToDetectorStop<int>(F_GET_ADC, index);
switch (index) {
case TEMPERATURE_ADC:
case TEMPERATURE_FPGA:
case TEMPERATURE_FPGAEXT:
case TEMPERATURE_10GE:
case TEMPERATURE_DCDC:
case TEMPERATURE_SODL:
case TEMPERATURE_SODR:
case TEMPERATURE_FPGA2:
case TEMPERATURE_FPGA3:
// only the temperatures go to the control server, others need
// configuration of adc in control server
return sendToDetectorStop<int>(F_GET_ADC, index);
default:
return sendToDetector<int>(F_GET_ADC, index);
}
}
int Module::getOnChipDAC(slsDetectorDefs::dacIndex index, int chipIndex) const {