mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-09 03:20:42 +02:00
got rid of check if online
This commit is contained in:
parent
4c6c078442
commit
2edeb74213
@ -7180,7 +7180,8 @@ int slsDetector::startReceiver(){
|
|||||||
int ret = FAIL;
|
int ret = FAIL;
|
||||||
char mess[MAX_STR_LENGTH] = "";
|
char mess[MAX_STR_LENGTH] = "";
|
||||||
|
|
||||||
if (setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG) {
|
if (setReceiverOnline()==ONLINE_FLAG) {
|
||||||
|
//if (setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG) {
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
std::cout << "Starting Receiver " << std::endl;
|
std::cout << "Starting Receiver " << std::endl;
|
||||||
#endif
|
#endif
|
||||||
@ -7216,7 +7217,8 @@ int slsDetector::stopReceiver(){
|
|||||||
if(thisDetector->myDetectorType != EIGER && thisDetector->myDetectorType != JUNGFRAU)
|
if(thisDetector->myDetectorType != EIGER && thisDetector->myDetectorType != JUNGFRAU)
|
||||||
detectorSendToReceiver(false);
|
detectorSendToReceiver(false);
|
||||||
|
|
||||||
if (setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG) {
|
if (setReceiverOnline()==ONLINE_FLAG) {
|
||||||
|
//if (setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG) {
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
std::cout << "Stopping Receiver " << std::endl;
|
std::cout << "Stopping Receiver " << std::endl;
|
||||||
#endif
|
#endif
|
||||||
@ -7322,7 +7324,8 @@ int slsDetector::getFramesCaughtByReceiver(){
|
|||||||
int ret = FAIL;
|
int ret = FAIL;
|
||||||
int retval=-1;
|
int retval=-1;
|
||||||
|
|
||||||
if (setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG) {
|
if (setReceiverOnline()==ONLINE_FLAG) {
|
||||||
|
//if (setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG) {
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
std::cout << "Getting Frames Caught by Receiver " << std::endl;
|
std::cout << "Getting Frames Caught by Receiver " << std::endl;
|
||||||
#endif
|
#endif
|
||||||
@ -7365,7 +7368,8 @@ int slsDetector::resetFramesCaught(){
|
|||||||
int ret = FAIL;
|
int ret = FAIL;
|
||||||
char mess[MAX_STR_LENGTH] = "";
|
char mess[MAX_STR_LENGTH] = "";
|
||||||
|
|
||||||
if (setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG) {
|
if (setReceiverOnline()==ONLINE_FLAG) {
|
||||||
|
//if (setReceiverOnline(ONLINE_FLAG)==ONLINE_FLAG) {
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
std::cout << "Reset Frames Caught by Receiver" << std::endl;
|
std::cout << "Reset Frames Caught by Receiver" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user