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