added sync and not executing set detector position in update mode

This commit is contained in:
maliakal_d 2021-10-19 07:58:54 +02:00
parent 51c2e78a31
commit 27c4d8652e

View File

@ -4324,8 +4324,7 @@ int copy_detector_server(int file_des) {
strcpy(cmd, "sync");
if (executeCommand(cmd, retvals, logDEBUG1) == FAIL) {
ret = FAIL;
snprintf(
mess, MAX_STR_LENGTH,
snprintf(mess, MAX_STR_LENGTH,
"Could not copy detector server (sync). %s\n",
retvals);
// LOG(logERROR, (mess)); already printed in executecommand
@ -4960,7 +4959,7 @@ int set_detector_position(int file_des) {
// only set
if (Server_VerifyLock() == OK) {
if (check_detector_idle("configure mac") == OK) {
if (!updateFlag && check_detector_idle("configure mac") == OK) {
maxydet = args[0];
detectorId = args[1];
calculate_and_set_position();