diff --git a/slsDetectorSoftware/slsDetector/slsDetector.cpp b/slsDetectorSoftware/slsDetector/slsDetector.cpp index 8e44714d0..c7b26a53d 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetector.cpp @@ -5226,6 +5226,7 @@ double* slsDetector::decodeData(int *datain, int &nn, double *fdata) { double *dataout; if (fdata) { dataout=fdata; + nn=thisDetector->nChans*thisDetector->nChips*thisDetector->nMods; // printf("not allocating fdata!\n"); if (thisDetector->myDetectorType==JUNGFRAUCTB) nn=thisDetector->dataBytes/2; } else {