diff --git a/slsDetectorSoftware/slsDetector/slsDetector.cpp b/slsDetectorSoftware/slsDetector/slsDetector.cpp index 3cda23298..3d82db206 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetector.cpp @@ -81,6 +81,9 @@ int slsDetector::checkDetectorVersionCompatibility() { case GOTTHARD: arg = APIGOTTHARD; break; + case CHIPTESTBOARD: + arg = APICTB; + break; default: FILE_LOG(logERROR) << "Check version compatibility is not implemented for this detector"; setErrorMask((getErrorMask()) | (VERSION_COMPATIBILITY)); diff --git a/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp b/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp index 926f9fa57..4117bcf19 100644 --- a/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetectorCommand.cpp @@ -4063,7 +4063,7 @@ std::string slsDetectorCommand::cmdADC(int narg, char *args[], int action, int d if (sscanf(args[0],"adc:%d",&idac)==1) { // printf("chiptestboard!\n"); adc=(dacIndex)(idac+1000); - if (idac < SLOW_ADC0 || idac > SLOW_ADC_TEMP) + if (idac < (SLOW_ADC0 - 1000) || idac > (SLOW_ADC_TEMP - 1000)) return (std::string ("cannot set adc, must be between ") + std::to_string(SLOW_ADC0 - 1000) + std::string (" and ") + std::to_string(SLOW_ADC_TEMP - 1000)); } else if (cmd=="temp_adc")