From 04a2e9d20cb2abdf658629571107f99dc187330c Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Mon, 26 Jun 2023 14:32:46 +0200 Subject: [PATCH] DetectorWrapper: Clear synchronization prior to reconfiguring the detector --- detector_control/DetectorWrapper.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/detector_control/DetectorWrapper.cpp b/detector_control/DetectorWrapper.cpp index cbaf5b9d..b1391f0d 100644 --- a/detector_control/DetectorWrapper.cpp +++ b/detector_control/DetectorWrapper.cpp @@ -12,6 +12,11 @@ void DetectorWrapper::Configure(const JFJochProtoBuf::DetectorConfig &request) { try { if (det.size() > 0) InternalStop(); + + // Clear synchronization prior to reconfiguring the detector + det.setMaster(false, 0); + det.setSynchronization(false); + if (request.module_hostname_size() > 0) { std::vector module_hostname; for (const auto &iter: request.module_hostname())