wip
CI for csaxs_bec / test (push) Failing after 1m1s
CI for csaxs_bec / test (pull_request) Failing after 1m10s

This commit is contained in:
x12sa
2025-12-19 08:39:39 +01:00
parent 4cb7549d7d
commit 10fa6d032d
@@ -319,12 +319,12 @@ class MCSCardCSAXS(PSIDeviceBase, MCSCard):
self.stop_all.put(1)
self.erase_all.put(1)
def mcs_recovery(self, timeout:int=2) -> None:
def mcs_recovery(self, timeout:int=1) -> None:
"""Recovery procedure for the mcs card"""
sleep_time = 1
logger.info(f"Running recovery procedure of {sleep_time}s sleep, calling stop_all and erase_all, and another {sleep_time}s sleep")
sleep_time = timeout / 2 # 2 sleeps
logger.info(f"Running recovery procedure for MCS card {self.name} with {sleep_time}s sleep, calling stop_all and erase_all, and another {sleep_time}s sleep")
self.erase_start.put(1)
time.sleep(sleep_time)
self.stop_all.put(1)
self.erase_all.put(1)
time.sleep(1)
time.sleep(sleep_time)