mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 10:00:40 +02:00
fixed bug mv in dacs for command line
This commit is contained in:
parent
828a2dbd17
commit
5e6153af9e
@ -3330,9 +3330,9 @@ string slsDetectorCommand::cmdDAC(int narg, char *args[], int action) {
|
||||
|
||||
if (action==PUT_ACTION) {
|
||||
|
||||
if(narg > 2)
|
||||
if(!strcasecmp(args[2],"mv"))
|
||||
mode = 1;
|
||||
if(narg >= 3)
|
||||
if(!strcasecmp(args[2],"mv"))
|
||||
mode = 1;
|
||||
#ifdef DACS_INT
|
||||
|
||||
if (sscanf(args[1],"%d", &val))
|
||||
@ -3346,6 +3346,10 @@ string slsDetectorCommand::cmdDAC(int narg, char *args[], int action) {
|
||||
myDet->setDAC(val,dac,mode);
|
||||
}
|
||||
|
||||
else if(narg >= 2)
|
||||
if(!strcasecmp(args[1],"mv"))
|
||||
mode = 1;
|
||||
|
||||
#ifdef DACS_INT
|
||||
sprintf(answer,"%d",myDet->setDAC(-1,dac,mode));
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user