Browse Source

Fix displaying time estimation with Griffin header

Otherwise it can't find the time and then doesn't output any time remaining commands.

Contributes to issue CURA-7787.
Ghostkeeper 4 years ago
parent
commit
3353817e1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/PostProcessingPlugin/scripts/DisplayProgressOnLCD.py

+ 1 - 1
plugins/PostProcessingPlugin/scripts/DisplayProgressOnLCD.py

@@ -96,7 +96,7 @@ class DisplayProgressOnLCD(Script):
                 lines = layer.split("\n")
 
                 for line in lines:
-                    if line.startswith(";TIME:") and total_time == -1:
+                    if (line.startswith(";TIME:") or line.startswith(";PRINT.TIME:")) and total_time == -1:
                         # This line represents the total time required to print the gcode
                         total_time = self.getTimeValue(line)
                         line_index = lines.index(line)