From 567b7b0db46ae4194cd00cea92ffb70efc382544 Mon Sep 17 00:00:00 2001 From: appel_c Date: Fri, 19 Jun 2026 14:13:19 +0200 Subject: [PATCH] w --- csaxs_bec/devices/epics/delay_generator_csaxs/ddg_1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csaxs_bec/devices/epics/delay_generator_csaxs/ddg_1.py b/csaxs_bec/devices/epics/delay_generator_csaxs/ddg_1.py index 708f60a..4801312 100644 --- a/csaxs_bec/devices/epics/delay_generator_csaxs/ddg_1.py +++ b/csaxs_bec/devices/epics/delay_generator_csaxs/ddg_1.py @@ -599,8 +599,8 @@ class DDG1(PSIDeviceBase, DelayGeneratorCSAXS): # an acquisition regularly with a WaitTimeoutError, the timeout can be increased but it should # be investigated why the EPICS interface is slow to respond. try: - mcs.acquiring.get() - status_mcs.wait(timeout=3) + if mcs.acquiring.get() != ACQUIRING.ACQUIRING: + status_mcs.wait(timeout=3) except Exception as exc: logger.warning(f"MCS did not go to Acquiring within 3s. Retrying erase_start {exc}") mcs.erase_start.put(1)