mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
bug fix: receiver connection
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@281 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
6f9e265949
commit
eb58540e2e
@ -5326,8 +5326,7 @@ int slsDetector::setReceiverOnline(int off) {
|
|||||||
if (off!=GET_ONLINE_FLAG) {
|
if (off!=GET_ONLINE_FLAG) {
|
||||||
thisDetector->receiverOnlineFlag=off;
|
thisDetector->receiverOnlineFlag=off;
|
||||||
if (thisDetector->receiverOnlineFlag==ONLINE_FLAG)
|
if (thisDetector->receiverOnlineFlag==ONLINE_FLAG)
|
||||||
if(setReceiverTCPSocket()==FAIL)
|
setReceiverTCPSocket();
|
||||||
thisDetector->receiverOnlineFlag=OFFLINE_FLAG;
|
|
||||||
}
|
}
|
||||||
return thisDetector->receiverOnlineFlag;
|
return thisDetector->receiverOnlineFlag;
|
||||||
}
|
}
|
||||||
@ -5352,7 +5351,7 @@ string slsDetector::checkReceiverOnline() {
|
|||||||
thisDetector->receiverOnlineFlag=OFFLINE_FLAG;
|
thisDetector->receiverOnlineFlag=OFFLINE_FLAG;
|
||||||
delete dataSocket;
|
delete dataSocket;
|
||||||
dataSocket=NULL;
|
dataSocket=NULL;
|
||||||
retval = thisDetector->receiverIP;
|
retval = FAIL;
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
std::cout<< "receiver offline!" << std::endl;
|
std::cout<< "receiver offline!" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user