mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-21 00:08:41 +01:00
retval pointer for printout
This commit is contained in:
Binary file not shown.
@@ -1962,7 +1962,7 @@ int setHighVoltage(int val, char *mess) {
|
||||
}
|
||||
|
||||
int getHighVoltage(int *retval, char *mess) {
|
||||
LOG(logDEBUG1, ("High Voltage: %d\n", retval));
|
||||
LOG(logDEBUG1, ("High Voltage: %d\n", *retval));
|
||||
*retval = highvoltage;
|
||||
return OK;
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1541,7 +1541,7 @@ int getDAC(enum DACINDEX ind, int mV, int *retval, char *mess) {
|
||||
return OK;
|
||||
}
|
||||
*retval = retvals[0];
|
||||
LOG(logINFO, ("\tvthreshold match %d\n"), retval);
|
||||
LOG(logINFO, ("\tvthreshold match %d\n", *retval));
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1575,7 +1575,7 @@ int setDAC(enum DACINDEX ind, int val, int mV, char *mess) {
|
||||
}
|
||||
}
|
||||
|
||||
if (LTC2620_D_SetDACValue((int)ind, val) == FAIL) {
|
||||
if (LTC2620_D_SetDACValue((int)ind, dacval) == FAIL) {
|
||||
sprintf(mess, "Could not set DAC %s.\n", dacNames[ind]);
|
||||
LOG(logERROR, (mess));
|
||||
return FAIL;
|
||||
@@ -1669,7 +1669,7 @@ int setHighVoltage(int val, char *mess) {
|
||||
|
||||
int getHighVoltage(int *retval, char *mess) {
|
||||
int ret = DAC6571_Get(retval, mess);
|
||||
LOG(logDEBUG1, ("High Voltage: %d\n", retval));
|
||||
LOG(logDEBUG1, ("High Voltage: %d\n", *retval));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1482,7 +1482,7 @@ int setHighVoltage(int val, char *mess) {
|
||||
}
|
||||
|
||||
int getHighVoltage(int *retval, char *mess) {
|
||||
LOG(logDEBUG1, ("High Voltage: %d\n", retval));
|
||||
LOG(logDEBUG1, ("High Voltage: %d\n", *retval));
|
||||
*retval = highvoltage;
|
||||
return OK;
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1048,7 +1048,7 @@ int setHighVoltage(int val, char *mess) {
|
||||
}
|
||||
|
||||
int getHighVoltage(int *retval, char *mess) {
|
||||
LOG(logDEBUG1, ("High Voltage: %d\n", retval));
|
||||
LOG(logDEBUG1, ("High Voltage: %d\n", *retval));
|
||||
*retval = highvoltage;
|
||||
return OK;
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1666,7 +1666,7 @@ int setGeneralDAC(enum DACINDEX ind, int val, int mV, char *mess) {
|
||||
}
|
||||
}
|
||||
|
||||
if (LTC2620_D_SetDACValue((int)ind, val) == FAIL) {
|
||||
if (LTC2620_D_SetDACValue((int)ind, dacval) == FAIL) {
|
||||
sprintf(mess, "Could not set DAC %s.\n", dacNames[ind]);
|
||||
LOG(logERROR, (mess));
|
||||
return FAIL;
|
||||
@@ -1727,7 +1727,7 @@ int getDAC(enum DACINDEX ind, int mV, int *retval, char *mess) {
|
||||
LOG(logERROR, (mess));
|
||||
return FAIL;
|
||||
}
|
||||
LOG(logINFO, ("\tvthreshold match %d\n", retval));
|
||||
LOG(logINFO, ("\tvthreshold match %d\n", *retval));
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -1793,7 +1793,7 @@ int setHighVoltage(int val, char *mess) {
|
||||
|
||||
int getHighVoltage(int *retval, char *mess) {
|
||||
int ret = DAC6571_Get(retval, mess);
|
||||
LOG(logDEBUG1, ("High Voltage: %d\n", retval));
|
||||
LOG(logDEBUG1, ("High Voltage: %d\n", *retval));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user