Просмотр исходного кода

Add space before comments

Some pause commands on some printers (looking at you, Repetier) seem to require a space after it, which is not obvious to the user. So we'll put a space there for them.

Fixes #6295.
Ghostkeeper 5 лет назад
Родитель
Сommit
f5aa2921ff
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      plugins/PostProcessingPlugin/scripts/TimeLapse.py

+ 4 - 4
plugins/PostProcessingPlugin/scripts/TimeLapse.py

@@ -77,10 +77,10 @@ class TimeLapse(Script):
         gcode_to_append = ";TimeLapse Begin\n"
 
         if park_print_head:
-            gcode_to_append += self.putValue(G = 1, F = feed_rate, X = x_park, Y = y_park) + ";Park print head\n"
-        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(G = 1, F = feed_rate, X = x_park, Y = y_park) + " ;Park print head\n"
+        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 += ";TimeLapse End\n"
         for layer in data:
             # Check that a layer is being printed