mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-30 16:11:19 +01:00
corrected bug fix in r_restreamstop
This commit is contained in:
@@ -6064,11 +6064,22 @@ string slsDetectorCommand::cmdReceiver(int narg, char *args[], int action) {
|
|||||||
if (action==GET_ACTION)
|
if (action==GET_ACTION)
|
||||||
return string("cannot get");
|
return string("cannot get");
|
||||||
else {
|
else {
|
||||||
if ((myDet->getRunStatus() != IDLE) || (myDet->getReceiverStatus() != IDLE)) {
|
runStatus s = myDet->getRunStatus();
|
||||||
std::cout << "Could not restream stop from receiver. Acquisition still in progress" << std::endl;
|
if (s != IDLE) {
|
||||||
|
std::cout << "Could not restream stop from receiver.\n"
|
||||||
|
"Detector Acquisition still in progress. Status: " << myDet->runStatusType(s) << std::endl;
|
||||||
sprintf(answer,"%d",0);
|
sprintf(answer,"%d",0);
|
||||||
|
return string (answer);
|
||||||
}
|
}
|
||||||
sprintf(answer,"%d",(myDet->restreamStopFromReceiver() == OK) ? 1 : 0);
|
s = myDet->getReceiverStatus();
|
||||||
|
if (s != IDLE) {
|
||||||
|
std::cout << "Could not restream stop from receiver.\n"
|
||||||
|
"Receiver Acquisition still in progress. Status: " << myDet->runStatusType(s) << std::endl;
|
||||||
|
sprintf(answer,"%d",0);
|
||||||
|
return string (answer);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
sprintf(answer,"%d",(myDet->restreamStopFromReceiver() == OK) ? 1 : 0);
|
||||||
}
|
}
|
||||||
return string(answer);
|
return string(answer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user