eiger server bug fix: get dacs conversion wrong

This commit is contained in:
maliakal_d 2019-07-02 17:50:39 +02:00
parent f4fa19b559
commit d2e4adf483
3 changed files with 3 additions and 3 deletions

View File

@ -1092,7 +1092,7 @@ int getDAC(enum DACINDEX ind, int mV) {
}
int voltage = -1;
// dac units to voltage
ConvertToDifferentRange(DAC_MIN_MV, DAC_MAX_MV, LTC2620_MIN_VAL, LTC2620_MAX_VAL,
ConvertToDifferentRange(LTC2620_MIN_VAL, LTC2620_MAX_VAL, DAC_MIN_MV, DAC_MAX_MV,
(detectorModules)->dacs[ind], &voltage);
FILE_LOG(logDEBUG1, ("Getting DAC %d : %d dac (%d mV)\n",ind, (detectorModules)->dacs[ind], voltage));
return voltage;

View File

@ -5,6 +5,6 @@
#define APIRECEIVER 0x190604
#define APIGUI 0x190405
#define APICTB 0x190604
#define APIEIGER 0x190604
#define APIJUNGFRAU 0x190604
#define APIGOTTHARD 0x190604
#define APIEIGER 0x190702