Browse Source

Cleaned up timelapse post processing script (issue #6730)

Matt Jani 5 years ago
parent
commit
81429f8985
1 changed files with 1 additions and 2 deletions
  1. 1 2
      plugins/PostProcessingPlugin/scripts/TimeLapse.py

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

@@ -85,7 +85,6 @@ class TimeLapse(Script):
         gcode_to_append += self.putValue(M=400) + " ;Wait for moves to finish\n"
         gcode_to_append += trigger_command + " ;Snap Photo\n"
         gcode_to_append += self.putValue(G=4, P=pause_length) + " ;Wait for camera\n"
-        gcode_to_append += self.putValue()
 
         for idx, layer in enumerate(data):
             for line in layer.split("\n"):
@@ -98,7 +97,7 @@ class TimeLapse(Script):
                 if ";LAYER:" in line:
                     layer += gcode_to_append
 
-                    layer += "G0 X" + str(last_x) + " Y" + str(last_y)+"\n"
+                    layer += "G0 X%s Y%s\n" % (last_x, last_y)
 
                     data[idx] = layer
                     break