mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-17 03:22:05 +01:00
gotthard2: vetoref taken as decimal and not hex in server
This commit is contained in:
Binary file not shown.
@@ -25,5 +25,5 @@ vcom_adc2 704
|
||||
#configure adc chip index adc index value(max 0x7F)
|
||||
confadc -1 -1 0x22
|
||||
|
||||
#vetoreference gain index value(max 0x3ff)
|
||||
vetoref 1 0x0
|
||||
#vetoreference gain index value(max 1023)
|
||||
vetoref 1 0
|
||||
|
||||
@@ -552,7 +552,7 @@ int readConfigFile() {
|
||||
int value = 0;
|
||||
|
||||
// cannot scan values
|
||||
if (sscanf(line, "%s %d 0x%x", command, &igain, &value) != 3) {
|
||||
if (sscanf(line, "%s %d %d", command, &igain, &value) != 3) {
|
||||
sprintf(initErrorMessage,
|
||||
"Could not scan vetoref commands from on-board server "
|
||||
"config file. Line:[%s].\n",
|
||||
@@ -1776,7 +1776,7 @@ void getInjectedChannels(int *offset, int *increment) {
|
||||
}
|
||||
|
||||
int setVetoReference(int gainIndex, int value) {
|
||||
LOG(logINFO, ("Setting veto reference [chip:-1, G%d, value:0x%x]\n",
|
||||
LOG(logINFO, ("Setting veto reference [chip:-1, G%d, value:%d]\n",
|
||||
gainIndex, value));
|
||||
int values[NCHAN];
|
||||
int gainIndices[NCHAN];
|
||||
|
||||
Reference in New Issue
Block a user