mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00
solved problem of configuring twice to make receiver none
This commit is contained in:
parent
74dfe04a18
commit
342d4f8c30
@ -392,6 +392,10 @@ int multiSlsDetector::addSlsDetector(int id, int pos) {
|
|||||||
|
|
||||||
//set offsets
|
//set offsets
|
||||||
updateOffsets();
|
updateOffsets();
|
||||||
|
destroyThreadPool();
|
||||||
|
if(createThreadPool() == FAIL)
|
||||||
|
exit(-1);
|
||||||
|
|
||||||
|
|
||||||
return thisMultiDetector->numberOfDetectors;
|
return thisMultiDetector->numberOfDetectors;
|
||||||
|
|
||||||
@ -859,6 +863,9 @@ int multiSlsDetector::removeSlsDetector(int pos) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateOffsets();
|
updateOffsets();
|
||||||
|
destroyThreadPool();
|
||||||
|
if(createThreadPool() == FAIL)
|
||||||
|
exit(-1);
|
||||||
|
|
||||||
return thisMultiDetector->numberOfDetectors;
|
return thisMultiDetector->numberOfDetectors;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user