Accept Griffin-style time estimation header

Otherwise it doesn't work for those printers.

Contributes to issue CURA-7787.
This commit is contained in:
Ghostkeeper 2020-10-20 17:19:17 +02:00 committed by Jelle Spijker
parent 7cf2ebe441
commit 0787594a3d
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A

View file

@ -77,7 +77,7 @@ class DisplayProgressOnLCD(Script):
current_time_string = "{:d}h{:02d}m{:02d}s".format(int(h), int(m), int(s)) current_time_string = "{:d}h{:02d}m{:02d}s".format(int(h), int(m), int(s))
# And now insert that into the GCODE # And now insert that into the GCODE
lines.insert(line_index, "M117 Time Left {}".format(current_time_string)) lines.insert(line_index, "M117 Time Left {}".format(current_time_string))
else: # Must be m73. else:
mins = int(60 * h + m + s / 30) mins = int(60 * h + m + s / 30)
lines.insert(line_index, "M73 R{}".format(mins)) lines.insert(line_index, "M73 R{}".format(mins))