From 0787594a3d7a9515be2a8565ecccbe5abb29d906 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 20 Oct 2020 17:19:17 +0200 Subject: [PATCH] Accept Griffin-style time estimation header Otherwise it doesn't work for those printers. Contributes to issue CURA-7787. --- plugins/PostProcessingPlugin/scripts/DisplayProgressOnLCD.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/PostProcessingPlugin/scripts/DisplayProgressOnLCD.py b/plugins/PostProcessingPlugin/scripts/DisplayProgressOnLCD.py index e39e69eff0..fd1c8af004 100644 --- a/plugins/PostProcessingPlugin/scripts/DisplayProgressOnLCD.py +++ b/plugins/PostProcessingPlugin/scripts/DisplayProgressOnLCD.py @@ -77,7 +77,7 @@ class DisplayProgressOnLCD(Script): current_time_string = "{:d}h{:02d}m{:02d}s".format(int(h), int(m), int(s)) # And now insert that into the GCODE lines.insert(line_index, "M117 Time Left {}".format(current_time_string)) - else: # Must be m73. + else: mins = int(60 * h + m + s / 30) lines.insert(line_index, "M73 R{}".format(mins))