mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-30 01:40:04 +02:00
ctbserver: dac -1 check limit error
This commit is contained in:
parent
9b81143c68
commit
eecfcae312
@ -874,8 +874,8 @@ int set_dac(int file_des) {
|
|||||||
FILE_LOG(logERROR,(mess));
|
FILE_LOG(logERROR,(mess));
|
||||||
} else {
|
} else {
|
||||||
#if defined(CHIPTESTBOARDD) || defined(MOENCHD)
|
#if defined(CHIPTESTBOARDD) || defined(MOENCHD)
|
||||||
if ((mV && checkVLimitCompliant(val) == FAIL) ||
|
if ((val != -1 && mV && checkVLimitCompliant(val) == FAIL) ||
|
||||||
(!mV && checkVLimitDacCompliant(val) == FAIL)) {
|
(val != -1 && !mV && checkVLimitDacCompliant(val) == FAIL)) {
|
||||||
ret = FAIL;
|
ret = FAIL;
|
||||||
sprintf(mess,"Could not set dac %d to value %d. "
|
sprintf(mess,"Could not set dac %d to value %d. "
|
||||||
"Exceeds voltage limit %d.\n",
|
"Exceeds voltage limit %d.\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user