The elif block always triggers on the next instruction after a wait, even if the current instruction is not also a wait (the proper indication of an indefinite wait).
Pretty sure the elif check should be elif row["reps"] == 0 and last_instruction_was_wait:
Issue is in this if-elif-else block
https://github.com/labscript-suite/labscript-devices/blob/e1f3d322662876564524e44938424572790f1232/labscript_devices/PrawnBlaster/runviewer_parsers.py#L96-L115
The
elif
block always triggers on the next instruction after a wait, even if the current instruction is not also a wait (the proper indication of an indefinite wait).Pretty sure the
elif
check should beelif row["reps"] == 0 and last_instruction_was_wait: