mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 08:10:02 +02:00
deletion of retval in getdatafrom, client
This commit is contained in:
parent
39a2317d8d
commit
52cf790dde
Binary file not shown.
@ -1438,8 +1438,8 @@ int* multiSlsDetector::getDataFromDetector() {
|
||||
#ifdef VERBOSE
|
||||
cout << "Detector " << id << " does not have data left " << endl;
|
||||
#endif
|
||||
if((detectors[id]->getDetectorsType() != EIGER)||(detectors[id]->getDetectorsType() != JUNGFRAU))
|
||||
break;
|
||||
/*if((detectors[id]->getDetectorsType() != EIGER)||(detectors[id]->getDetectorsType() != JUNGFRAU))
|
||||
break;*/
|
||||
}
|
||||
p+=n/sizeof(int);
|
||||
}
|
||||
@ -1447,9 +1447,10 @@ int* multiSlsDetector::getDataFromDetector() {
|
||||
|
||||
//eiger returns only null
|
||||
detectorType types = getDetectorsType();
|
||||
//if(types == EIGER )
|
||||
if(types == EIGER || types == JUNGFRAU)
|
||||
if(types == EIGER || types == JUNGFRAU){
|
||||
delete [] retval;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (nodatadet>=0) {
|
||||
for (int id=0; id<thisMultiDetector->numberOfDetectors; id++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user