Skip to content

Commit b7291df

Browse files
committed
Fixed delay, send X000 Y000 twice
1 parent e8c9738 commit b7291df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fc_cycle/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ def main(args):
9292
tube_time = int(input("Time per tube in Seconds (default: 60): ") or 60)
9393

9494
total_time *= 60
95-
delay *= 60
9695

9796
with gsioc.get_serial(serial_name, gsioc_id=gsioc_id) as ser:
9897
try:
@@ -126,6 +125,9 @@ def main(args):
126125
# Reset the machine
127126
ser.write_line("X000")
128127
ser.write_line("Y000")
128+
time.sleep(1)
129+
ser.write_line("X000")
130+
ser.write_line("Y000")
129131

130132

131133
if __name__ == "__main__":

0 commit comments

Comments
 (0)