From 1b471bc6759d6e9c49a32e627dbf843d7b5a7ee6 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Thu, 17 Sep 2015 09:14:00 +0200 Subject: [PATCH] partial_frames for 10g bug fixed specifzing literal 1024 for allowed packet size in startwritign --- slsReceiverSoftware/src/UDPStandardImplementation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slsReceiverSoftware/src/UDPStandardImplementation.cpp b/slsReceiverSoftware/src/UDPStandardImplementation.cpp index d55a1f1fc..8c68403b6 100644 --- a/slsReceiverSoftware/src/UDPStandardImplementation.cpp +++ b/slsReceiverSoftware/src/UDPStandardImplementation.cpp @@ -1962,7 +1962,7 @@ int UDPStandardImplementation::startWriting(){ uint32_t lastpacketheader[numListeningThreads], currentpacketheader[numListeningThreads]; int numberofmissingpackets[numListeningThreads]; - int MAX_VALUE = 1024; + int MAX_VALUE = 1024;//32 bit number of packets char* tofree[MAX_VALUE]; char* tempbuffer[MAX_VALUE]; char* blankframe[MAX_VALUE]; @@ -2097,7 +2097,7 @@ int UDPStandardImplementation::startWriting(){ #endif }else{ endofacquisition = false; - if(numpackets[i] == 1040){; + if(numpackets[i] == bufferSize){; #ifdef EIGER_DEBUG3 wbuf_footer = (eiger_packet_footer_t*)(wbuf[i] + footer_offset + HEADER_SIZE_NUM_TOT_PACKETS); //cprintf(BLUE,"footer value:0x%x\n",i,(uint64_t)(*( (uint64_t*) wbuf_footer)));