wip
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user