Browse Source

Add wait for moves to finish to timelapse script

Wayne Porter 6 years ago
parent
commit
2e77293204
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/PostProcessingPlugin/scripts/TimeLapse.py

+ 1 - 0
plugins/PostProcessingPlugin/scripts/TimeLapse.py

@@ -76,6 +76,7 @@ class TimeLapse(Script):
         trigger_cmd = self.getSettingValueByKey("trigger_cmd")
         pause_length = self.getSettingValueByKey("pause_length")
 
+        gcode_to_append = self.putValue(M = 400) + ";Wait for moves to finish\n"
         if park_print_head:
 	        gcode_to_append = self.putValue(G = 90) + ";Absolute positioning\n"
         	gcode_to_append += self.putValue(G = 1, F = feed_rate, X = x_park, Y = y_park) + ";Park print head\n"