fix st-ten-6

This commit is contained in:
edo-neo 2024-12-11 15:16:35 +01:00
parent bda17a5452
commit 226b7d1398

View File

@ -455,6 +455,7 @@ class Test(Widget):
leak1_index = step_types.index("leak_1")
leak2_index = step_types.index("leak_2")
if leak1_index + 1 == leak2_index: # Ensure 'leak_1' is immediately followed by 'leak_2'
if self.config["hardware_config"].get("second_leak_test", "yes") == "no":
steps.insert(leak2_index, Step(step_type="instruction_extra", spec={}))
inserted_instruction = True