refactor getID

This commit is contained in:
Erik Frojdh
2019-03-19 16:27:07 +01:00
parent 38bf540c1a
commit 6759b2eeb8
9 changed files with 253 additions and 211 deletions

View File

@ -3465,7 +3465,7 @@ std::string slsDetectorCommand::cmdSN(int narg, char *args[], int action, int de
return helpSN(action);
if (cmd == "thisversion") {
int64_t retval = myDet->getId(THIS_SOFTWARE_VERSION, detPos);
int64_t retval = myDet->getClientSoftwareVersion();
if (retval < 0)
sprintf(answer, "%d", -1);
else
@ -3504,7 +3504,7 @@ std::string slsDetectorCommand::cmdSN(int narg, char *args[], int action, int de
if (cmd == "receiverversion") {
myDet->setReceiverOnline(ONLINE_FLAG, detPos);
int64_t retval = myDet->getId(RECEIVER_VERSION, detPos);
int64_t retval = myDet->getReceiverSoftwareVersion(detPos);
if (retval < 0)
sprintf(answer, "%d", -1);
else