diff --git a/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp b/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp index 1f4efa918..912e6486d 100644 --- a/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp +++ b/slsDetectorSoftware/slsReceiver/slsReceiverFunctionList.cpp @@ -115,7 +115,10 @@ slsReceiverFunctionList::slsReceiverFunctionList(detectorType det): strcpy(latestData,""); strcpy(savefilename,""); strcpy(filePath,""); + strcpy(fileName,"run"); + if(myDetectorType == EIGER) + receiver->setFileName(fileName); cmSub = NULL; for(int i=0;igetFilePath(); + else + return filePath; } char* slsReceiverFunctionList::setFilePath(char c[]){ @@ -250,7 +256,7 @@ char* slsReceiverFunctionList::setFilePath(char c[]){ struct stat st; if(stat(c,&st) == 0){ if(myDetectorType == EIGER) - receiver->setFileName(c); + receiver->setFilePath(c); else strcpy(filePath,c); }else{ @@ -258,10 +264,7 @@ char* slsReceiverFunctionList::setFilePath(char c[]){ cout<<"FilePath does not exist:"<getFilePath(); - else - return getFilePath(); + return getFilePath(); } @@ -280,10 +283,7 @@ char* slsReceiverFunctionList::setFileName(char c[]){ strcpy(fileName,c); } - if(myDetectorType == EIGER) - return receiver->getFileName(); - else - return getFileName(); + return getFileName(); } diff --git a/slsDetectorSoftware/slsReceiver/slsReceiver_funcs.cpp b/slsDetectorSoftware/slsReceiver/slsReceiver_funcs.cpp index f92f257c9..859a225f9 100644 --- a/slsDetectorSoftware/slsReceiver/slsReceiver_funcs.cpp +++ b/slsDetectorSoftware/slsReceiver/slsReceiver_funcs.cpp @@ -1775,7 +1775,7 @@ int slsReceiverFuncs::send_update() { //index #ifdef SLS_RECEIVER_FUNCTION_LIST - if(myDetectorType != EIGER) + /*if(myDetectorType != EIGER)*/ ind=slsReceiverList->getFileIndex(); socket->SendDataOnly(&ind,sizeof(ind));