changes for external gui

This commit is contained in:
Dhanya Maliakal
2017-08-23 16:31:32 +02:00
parent 2116070f02
commit f4e2b819d2
2 changed files with 5 additions and 3 deletions

View File

@ -2295,7 +2295,9 @@ string slsDetectorCommand::cmdAcquire(int narg, char *args[], int action) {
myDet->setOnline(ONLINE_FLAG);
if (myDet->setReceiverOnline(ONLINE_FLAG) == ONLINE_FLAG) {
myDet->setReceiverOnline(ONLINE_FLAG);
/*if (myDet->setReceiverOnline(ONLINE_FLAG) == ONLINE_FLAG) {
// command line: must be off, if receiver on or there was -1, then
if (myDet->enableDataStreamingFromReceiver(-1) != 0){
//switch it off, if error
@ -2303,7 +2305,7 @@ string slsDetectorCommand::cmdAcquire(int narg, char *args[], int action) {
return string("could not disable data streaming in receiver\n");
}
}
}
}*/
if(myDet->acquire() == FAIL)
return string("acquire unsuccessful");