fixed acquire not working

This commit is contained in:
Erik Frojdh 2019-05-28 18:15:15 +02:00
parent 788ad8d3b6
commit 0f869e1215

View File

@ -92,13 +92,18 @@ class multiSlsDetectorClient {
//Call CmdProxy which execute the command if it exists, on success returns an empty string //Call CmdProxy which execute the command if it exists, on success returns an empty string
//If the command is not in CmdProxy but deprecated the new command is returned //If the command is not in CmdProxy but deprecated the new command is returned
sls::CmdProxy<multiSlsDetector> proxy(detPtr); if(action_ != slsDetectorDefs::READOUT_ACTION){
auto cmd = proxy.Call(parser.command(), parser.arguments(), parser.detector_id()); sls::CmdProxy<multiSlsDetector> proxy(detPtr);
if (cmd.empty()) auto cmd = proxy.Call(parser.command(), parser.arguments(), parser.detector_id());
return; if (cmd.empty()){
else return;
parser.setCommand(cmd); }
else{
parser.setCommand(cmd);
}
}
// call multi detector command line // call multi detector command line