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.
This commit is contained in:
Ghostkeeper 2020-10-22 16:26:15 +02:00
parent 9471ad1c32
commit 3353817e1c
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -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)