fixed high voltage index and bottom high voltage problem in server

This commit is contained in:
Dhanya Maliakal
2016-03-09 11:24:36 +01:00
parent 7ace569daf
commit b9e2a11adf
5 changed files with 10 additions and 8 deletions

View File

@ -1197,7 +1197,7 @@ int set_dac(int file_des) {
case E_Vis:
idac = VIS;
break;
case HV_POT:
case HV_NEW:
break;
case IO_DELAY:
break;
@ -1217,8 +1217,8 @@ int set_dac(int file_des) {
ret=FAIL;
sprintf(mess,"Detector locked by %s\n",lastClientIP);
} else{
if(ind == HV_POT)
retval[0] = setHighVolage(val,imod);
if((ind == HV_POT) ||(ind == HV_NEW))
retval[0] = setHighVoltage(val,imod);
else if(ind == IO_DELAY)
retval[0] = setIODelay(val,imod);
else