mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
highvoltage again
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@59 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -878,8 +878,10 @@ int set_dac(int fnum) {
|
||||
printf("DAC/TEMP/HV set to %f V\n", retval);
|
||||
#endif
|
||||
ret=FAIL;
|
||||
if((itemp==HIGH_VOLTAGE)&&(retval!=-1))
|
||||
ret =OK;
|
||||
if (itemp==HIGH_VOLTAGE){
|
||||
if (retval!=-1)
|
||||
ret=OK;
|
||||
}
|
||||
else if (retval==val || val==-1)
|
||||
ret=OK;
|
||||
|
||||
@ -887,7 +889,7 @@ int set_dac(int fnum) {
|
||||
printf("Setting dac/hv %d of module %d: wrote %f but read %f\n", ind, imod, val, retval);
|
||||
|
||||
|
||||
/* send answer */
|
||||
/* send answer */
|
||||
/* send OK/failed */
|
||||
n = sendDataOnly(&ret,sizeof(ret));
|
||||
if (ret==OK) {
|
||||
|
Reference in New Issue
Block a user