mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
multiple detector on one PC should now work
This commit is contained in:
parent
84ad2912c6
commit
b073ecacb9
@ -27,6 +27,7 @@ class multiSlsDetectorClient {
|
||||
//myDetector->registerDataCallback(&dummyCallback, NULL);
|
||||
del=1; \
|
||||
};
|
||||
cout << "noid" <<endl;
|
||||
myCmd=new multiSlsDetectorCommand(myDetector); \
|
||||
answer=myCmd->executeLine(argc, argv, action); \
|
||||
cout << answer<< endl; \
|
||||
@ -51,10 +52,10 @@ class multiSlsDetectorClient {
|
||||
return; \
|
||||
}; \
|
||||
if (myDetector==NULL) { \
|
||||
iv=sscanf(argv[0],"%d-%s",&id, cmd); \
|
||||
if (iv==2 && id>=0) { \
|
||||
iv=sscanf(argv[0],"%d-%s",&id, cmd); \
|
||||
if (id>=0) { \
|
||||
myDetector=new multiSlsDetector(id); \
|
||||
argv[0]=cmd; \
|
||||
argv[0]=cmd; \
|
||||
cout << id << "-" ; \
|
||||
} else { \
|
||||
myDetector=new multiSlsDetector(); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user