diff --git a/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp b/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp index c340b11a2..03c6a55df 100644 --- a/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp +++ b/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp @@ -77,6 +77,8 @@ slsReceiverFunctionList::slsReceiverFunctionList(detectorType det): maxFramesPerFile = MOENCH_MAX_FRAMES_PER_FILE; bufferSize = MOENCH_BUFFER_SIZE; packetsPerFrame = MOENCH_PACKETS_PER_FRAME; + frameIndexMask = MOENCH_FRAME_INDEX_MASK; + frameIndexOffset = MOENCH_FRAME_INDEX_OFFSET; } oneBufferSize = bufferSize/packetsPerFrame; @@ -540,6 +542,9 @@ int slsReceiverFunctionList::startListening(){ #endif continue; } + //cout<<"got index:"<> frameIndexOffset); + + if ((myDetectorType == GOTTHARD) && (shortFrame == -1)) (*((uint32_t*)(buffer+offset)))++; @@ -851,7 +856,8 @@ int slsReceiverFunctionList::startWriting(){ receiver_threads_running=0; pthread_mutex_unlock(&status_mutex); - cout << "RealTime Frames Caught:" << dec <