mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 22:07:12 +02:00
Merge branch 'developer' into gui
This commit is contained in:
Binary file not shown.
@ -1084,7 +1084,7 @@ int getDAC(enum DACINDEX ind, int mV) {
|
|||||||
}
|
}
|
||||||
int voltage = -1;
|
int voltage = -1;
|
||||||
// dac units to voltage
|
// 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);
|
(detectorModules)->dacs[ind], &voltage);
|
||||||
FILE_LOG(logDEBUG1, ("Getting DAC %d : %d dac (%d mV)\n",ind, (detectorModules)->dacs[ind], voltage));
|
FILE_LOG(logDEBUG1, ("Getting DAC %d : %d dac (%d mV)\n",ind, (detectorModules)->dacs[ind], voltage));
|
||||||
return voltage;
|
return voltage;
|
||||||
|
Reference in New Issue
Block a user