mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-29 17:40:01 +02:00
WIP
This commit is contained in:
parent
19bd39eece
commit
889e926479
@ -1221,7 +1221,7 @@ void setDAC(enum DACINDEX ind, int val, int mV) {
|
|||||||
// convert to dac units
|
// convert to dac units
|
||||||
if (ConvertToDifferentRange(DAC_MIN_MV, DAC_MAX_MV, LTC2620_MIN_VAL,
|
if (ConvertToDifferentRange(DAC_MIN_MV, DAC_MAX_MV, LTC2620_MIN_VAL,
|
||||||
LTC2620_MAX_VAL, val, &dacval) == FAIL) {
|
LTC2620_MAX_VAL, val, &dacval) == FAIL) {
|
||||||
LOG(logERRROR,
|
LOG(logERROR,
|
||||||
("Could not convert %d mV for dac to dac units\n", val));
|
("Could not convert %d mV for dac to dac units\n", val));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user