mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 15:00:02 +02:00
fixed the getnmod problem
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@488 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
c65026792c
commit
620e83821d
@ -2551,6 +2551,7 @@ string slsDetectorCommand::cmdDetectorSize(int narg, char *args[], int action) {
|
||||
int ret, val=-1, pos=-1,i;
|
||||
char ans[1000], temp[100];
|
||||
|
||||
myDet->setOnline(ONLINE_FLAG);
|
||||
|
||||
if (action==PUT_ACTION) {
|
||||
if (cmd=="maxmod")
|
||||
@ -2558,8 +2559,6 @@ string slsDetectorCommand::cmdDetectorSize(int narg, char *args[], int action) {
|
||||
else if (!sscanf(args[1],"%d",&val))
|
||||
return string("could not scan ")+string(args[0])+string(" ")+string(args[1]);
|
||||
|
||||
myDet->setOnline(ONLINE_FLAG);
|
||||
|
||||
if (cmd=="roi"){
|
||||
//debug number of arguments
|
||||
if ((val<0) || (narg!=((val*4)+2)) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user