mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-04 03:40:04 +02:00
got rid of client telling detector that receiver is down each time it doesnt work
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@325 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
f37cd6640f
commit
439c2b1de8
@ -1062,9 +1062,6 @@ int slsDetector::setTCPSocket(string const name, int const control_port, int con
|
|||||||
std::cout<< "offline!" << std::endl;
|
std::cout<< "offline!" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
//default receiver off. if it was on by default, client doesnt know
|
|
||||||
if(thisDetector->onlineFlag==ONLINE_FLAG)
|
|
||||||
detectorSendToReceiver(false);
|
|
||||||
return retval;
|
return retval;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -5302,9 +5299,6 @@ int slsDetector::setReceiverOnline(int off) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//To ensure detector knows, if receiver suddenly went down
|
|
||||||
if((prev==ONLINE_FLAG)&&(thisDetector->receiverOnlineFlag==OFFLINE_FLAG))
|
|
||||||
detectorSendToReceiver(false);
|
|
||||||
return thisDetector->receiverOnlineFlag;
|
return thisDetector->receiverOnlineFlag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -790,6 +790,7 @@ string slsDetectorCommand::cmdAcquire(int narg, char *args[], int action) {
|
|||||||
if(receiver)
|
if(receiver)
|
||||||
myDet->stopReceiver();
|
myDet->stopReceiver();
|
||||||
|
|
||||||
|
|
||||||
return string("");
|
return string("");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user