From 4934d7a6e9d13de78fc20f0fa0376de2dfcfd784 Mon Sep 17 00:00:00 2001 From: Mathias Lyngklip Kjeldgaard Date: Thu, 8 Aug 2019 11:03:24 +0200 Subject: [PATCH] Fixed a bug caused by ":" I discovered the ":" I added caused the rest of the message to not be displayed when printing from a SD card, so I removed the ":". --- .../PostProcessingPlugin/scripts/DisplayRemainingTimeOnLCD.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/PostProcessingPlugin/scripts/DisplayRemainingTimeOnLCD.py b/plugins/PostProcessingPlugin/scripts/DisplayRemainingTimeOnLCD.py index e5f61f7360..9152ab65f9 100644 --- a/plugins/PostProcessingPlugin/scripts/DisplayRemainingTimeOnLCD.py +++ b/plugins/PostProcessingPlugin/scripts/DisplayRemainingTimeOnLCD.py @@ -61,7 +61,7 @@ class DisplayRemainingTimeOnLCD(Script): m, s = divmod(total_time, 60) # Math to calculate h, m = divmod(m, 60) # hours, minutes and seconds. total_time_string = "{:d}h{:02d}m{:02d}s".format(h, m, s) # Now we put it into the string - lines[line_index] = "M117 Time Left: {}".format(total_time_string) # And print that string instead of the original one + lines[line_index] = "M117 Time Left {}".format(total_time_string) # And print that string instead of the original one @@ -83,7 +83,7 @@ class DisplayRemainingTimeOnLCD(Script): m1, s1 = divmod(time_left, 60) # And some math to get the total time in seconds into h1, m1 = divmod(m1, 60) # the right format. (HH,MM,SS) current_time_string = "{:d}h{:2d}m{:2d}s".format(int(h1), int(m1), int(s1)) # Here we create the string holding our time - lines[line_index] = "M117 Time Left: {}".format(current_time_string) # And now insert that into the GCODE + lines[line_index] = "M117 Time Left {}".format(current_time_string) # And now insert that into the GCODE # Here we are OUT of the second for-loop