mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-22 17:57:17 +01:00
ctb fix
This commit is contained in:
Binary file not shown.
@@ -1238,7 +1238,9 @@ void setDAC(enum DACINDEX ind, int val, int mV) {
|
|||||||
// convert to dac units
|
// convert to dac units
|
||||||
else if (LTC2620_VoltageToDac(val, &dacval) == OK) {
|
else if (LTC2620_VoltageToDac(val, &dacval) == OK) {
|
||||||
dacValues[ind] = dacval;
|
dacValues[ind] = dacval;
|
||||||
} else if (LTC2620_SetDACValue((int)ind, val, mV, &dacval) == OK)
|
}
|
||||||
|
#else
|
||||||
|
if (LTC2620_SetDACValue((int)ind, val, mV, &dacval) == OK)
|
||||||
dacValues[ind] = dacval;
|
dacValues[ind] = dacval;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user