mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-30 18:14:56 +01:00
got rif of unncessary couts in receiver
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@584 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@@ -34,4 +34,5 @@ int receiveChannel(int file_des, sls_detector_channel *myChan);
|
|||||||
int receiveChip(int file_des, sls_detector_chip* myChip);
|
int receiveChip(int file_des, sls_detector_chip* myChip);
|
||||||
int receiveModule(int file_des, sls_detector_module* myMod);
|
int receiveModule(int file_des, sls_detector_module* myMod);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1011,8 +1011,9 @@ int slsReceiverFuncs::moench_read_frame(){
|
|||||||
//cout<<"this frame number:"<<thisFrameNumber<<endl;
|
//cout<<"this frame number:"<<thisFrameNumber<<endl;
|
||||||
|
|
||||||
while (iPacket < numPackets){
|
while (iPacket < numPackets){
|
||||||
|
#ifdef VERBOSE
|
||||||
printf("iPacket:%d\n",iPacket);cout << endl;
|
printf("iPacket:%d\n",iPacket);cout << endl;
|
||||||
|
#endif
|
||||||
packetIndex = (*((int*)(((char*)origVal)+packetOffset))) & MOENCH_PACKET_INDEX_MASK;
|
packetIndex = (*((int*)(((char*)origVal)+packetOffset))) & MOENCH_PACKET_INDEX_MASK;
|
||||||
//the first packet is placed in the end
|
//the first packet is placed in the end
|
||||||
packetIndex--;
|
packetIndex--;
|
||||||
@@ -1026,8 +1027,9 @@ int slsReceiverFuncs::moench_read_frame(){
|
|||||||
|
|
||||||
x = packetIndex / 10;
|
x = packetIndex / 10;
|
||||||
y = packetIndex % 10;
|
y = packetIndex % 10;
|
||||||
|
#ifdef VERBOSE
|
||||||
cout<<"x:"<<x<<" y:"<<y<<endl;
|
cout<<"x:"<<x<<" y:"<<y<<endl;
|
||||||
|
#endif
|
||||||
//copy 16 times 80 bytes
|
//copy 16 times 80 bytes
|
||||||
for (i = 0; i < partsPerFrame; i++) {
|
for (i = 0; i < partsPerFrame; i++) {
|
||||||
memcpy((((char*)retval) +
|
memcpy((((char*)retval) +
|
||||||
|
|||||||
Reference in New Issue
Block a user