mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 23:10:02 +02:00
slsDetectorSoftware: command line should print same file when loading or saving to trimbits file
This commit is contained in:
parent
d7cc9fc023
commit
7db6b7bca8
@ -4618,12 +4618,16 @@ string slsDetectorCommand::cmdSettings(int narg, char *args[], int action) {
|
|||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
std::cout<< " trimfile " << sval << std::endl;
|
std::cout<< " trimfile " << sval << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
int ret = OK;
|
||||||
if (action==GET_ACTION) {
|
if (action==GET_ACTION) {
|
||||||
//create file names
|
//create file names
|
||||||
myDet->saveSettingsFile(sval, -1);
|
ret = myDet->saveSettingsFile(sval, -1);
|
||||||
} else if (action==PUT_ACTION) {
|
} else if (action==PUT_ACTION) {
|
||||||
myDet->loadSettingsFile(sval,-1);
|
ret = myDet->loadSettingsFile(sval,-1);
|
||||||
}
|
}
|
||||||
|
if (ret == OK)
|
||||||
|
return sval;
|
||||||
|
else return string("not successful");
|
||||||
}
|
}
|
||||||
return myDet->getSettingsFile();
|
return myDet->getSettingsFile();
|
||||||
} else if (cmd=="trim") {
|
} else if (cmd=="trim") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user