mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00
added sync and not executing set detector position in update mode
This commit is contained in:
parent
51c2e78a31
commit
27c4d8652e
@ -4324,8 +4324,7 @@ int copy_detector_server(int file_des) {
|
|||||||
strcpy(cmd, "sync");
|
strcpy(cmd, "sync");
|
||||||
if (executeCommand(cmd, retvals, logDEBUG1) == FAIL) {
|
if (executeCommand(cmd, retvals, logDEBUG1) == FAIL) {
|
||||||
ret = FAIL;
|
ret = FAIL;
|
||||||
snprintf(
|
snprintf(mess, MAX_STR_LENGTH,
|
||||||
mess, MAX_STR_LENGTH,
|
|
||||||
"Could not copy detector server (sync). %s\n",
|
"Could not copy detector server (sync). %s\n",
|
||||||
retvals);
|
retvals);
|
||||||
// LOG(logERROR, (mess)); already printed in executecommand
|
// LOG(logERROR, (mess)); already printed in executecommand
|
||||||
@ -4960,7 +4959,7 @@ int set_detector_position(int file_des) {
|
|||||||
|
|
||||||
// only set
|
// only set
|
||||||
if (Server_VerifyLock() == OK) {
|
if (Server_VerifyLock() == OK) {
|
||||||
if (check_detector_idle("configure mac") == OK) {
|
if (!updateFlag && check_detector_idle("configure mac") == OK) {
|
||||||
maxydet = args[0];
|
maxydet = args[0];
|
||||||
detectorId = args[1];
|
detectorId = args[1];
|
||||||
calculate_and_set_position();
|
calculate_and_set_position();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user