mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 00:55:12 +08:00
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:
parent
9471ad1c32
commit
3353817e1c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user