mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 23:37:14 +02:00
adc command line bug, ctb api added to client
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user