mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 15:00: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
|
||||
std::cout<< " trimfile " << sval << std::endl;
|
||||
#endif
|
||||
int ret = OK;
|
||||
if (action==GET_ACTION) {
|
||||
//create file names
|
||||
myDet->saveSettingsFile(sval, -1);
|
||||
ret = myDet->saveSettingsFile(sval, -1);
|
||||
} 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();
|
||||
} else if (cmd=="trim") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user