mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-24 02:27:59 +02:00
get detector and receiver status bug fixed
This commit is contained in:
@ -3278,14 +3278,14 @@ slsDetectorDefs::runStatus slsDetector::getRunStatus(){
|
||||
stopSocket->SendDataOnly(&fnum,sizeof(fnum));
|
||||
stopSocket->ReceiveDataOnly(&ret,sizeof(ret));
|
||||
|
||||
// cout << "________:::____________" << ret << endl;
|
||||
//cout << "________:::____________" << ret << endl;
|
||||
|
||||
if (ret==FAIL) {
|
||||
stopSocket->ReceiveDataOnly(mess,sizeof(mess));
|
||||
std::cout<< "Detector returned error: " << mess << std::endl;
|
||||
} else {
|
||||
stopSocket->ReceiveDataOnly(&retval,sizeof(retval));
|
||||
// cout << "____________________" << retval << endl;
|
||||
//cout << "____________________" << retval << endl;
|
||||
}
|
||||
stopSocket->Disconnect();
|
||||
}
|
||||
|
@ -1186,7 +1186,7 @@ string slsDetectorCommand::cmdStatus(int narg, char *args[], int action) {
|
||||
} else if (action==HELP_ACTION) {
|
||||
return helpStatus(narg,args,HELP_ACTION);
|
||||
}
|
||||
runStatus s=myDet->getRunStatus();
|
||||
runStatus s=myDet->getRunStatus();
|
||||
return myDet->runStatusType(s);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user