jungfrauserver adcphase fix: bug was if adcphase was same as previous value, it still shifted

This commit is contained in:
2018-03-14 17:20:26 +01:00
parent dd6301d66d
commit 40210ae26f
4 changed files with 7 additions and 7 deletions

View File

@ -3167,7 +3167,7 @@ int set_speed(int file_des) {
#ifdef JUNGFRAUD
case ADC_PHASE:
retval = adcPhase(val);
if ((val != 65536) && (retval!=val) && (val>=0)) {
if ((val != 100000) && (retval!=val) && (val>=0)) {
ret=FAIL;
sprintf(mess,"could not change set adc phase: should be %d but is %d \n", val, retval);
cprintf(RED, "Warning: %s", mess);