moved start of frame to after stoplistening, for eiger to ignore incomplete frames

This commit is contained in:
Dhanya Maliakal
2015-02-24 16:19:33 +01:00
parent 651a13f811
commit 3ee146a2ca
3 changed files with 45 additions and 29 deletions

View File

@ -1336,9 +1336,9 @@ int slsReceiverTCPIPInterface::eiger_read_frame(){
/**send garbage with -1 index to try again*/
if (raw == NULL){
arg = -1;
//#ifdef VERBOSE
#ifdef VERBOSE
cout<<"data not ready for gui yet"<<endl;
//#endif
#endif
}
/**proper frame*/
@ -1464,19 +1464,19 @@ int slsReceiverTCPIPInterface::eiger_read_frame(){
*/
}
arg = index-startIndex;
//#ifdef VERY_VERY_DEBUG
#ifdef VERY_VERY_DEBUG
cout << "arg calculated is:"<<arg<<endl;
cout <<"index:"<<index<<" startindex:"<<startIndex<<endl;
//#endif
#endif
}
}
//#ifdef VERBOSE
#ifdef VERBOSE
//if(arg!=-1){
cout << "fName:" << fName << endl;
cout << "findex:" << dec << arg << endl;
//}
//#endif
#endif