diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-06-04 14:53:18 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-06-04 15:02:18 -0400 |
commit | 2a66286d1c2c01ddd9ce34ae6c8417cc02401c78 (patch) | |
tree | 45c1daf48ae7cd2809f8e3d0485a1eb3da2fbd6b /klippy/extras/display | |
parent | 2da7d654028a0e391bf7353d3cf19cb60ff88915 (diff) | |
download | kutter-2a66286d1c2c01ddd9ce34ae6c8417cc02401c78.tar.gz kutter-2a66286d1c2c01ddd9ce34ae6c8417cc02401c78.tar.xz kutter-2a66286d1c2c01ddd9ce34ae6c8417cc02401c78.zip |
display: Do not show time remaining in default 16x4 display
The time remaining estimation is wildy inaccurate. Only show the time
elapsed.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/display')
-rw-r--r-- | klippy/extras/display/display.cfg | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/klippy/extras/display/display.cfg b/klippy/extras/display/display.cfg index 38b3d925..e6b46c8c 100644 --- a/klippy/extras/display/display.cfg +++ b/klippy/extras/display/display.cfg @@ -45,15 +45,7 @@ text: [display_template _printing_time] text: {% set ptime = printer.idle_timeout.printing_time %} - {% set progress = printer.display_status.progress %} - {% if progress >= 0.05 and ptime % 12 >= 6 %} - # Periodically show time remaining - {% set rtime = (ptime / progress) - ptime %} - { "-%02d:%02d" % (rtime // (60 * 60), (rtime // 60) % 60) } - {% else %} - {% set msg = "%02d:%02d" % (ptime // (60 * 60), (ptime // 60) % 60) %} - { "%6s" % (msg,) } - {% endif %} + { "%02d:%02d" % (ptime // (60 * 60), (ptime // 60) % 60) } [display_template _print_status] text: @@ -100,7 +92,7 @@ text: { draw_progress_bar(2, 0, 10, printer.display_status.progress) } [display_data _default_16x4 printing_time] position: 2, 10 -text: { render("_printing_time") } +text: { "%6s" % (render("_printing_time").strip(),) } [display_data _default_16x4 print_status] position: 3, 0 @@ -136,7 +128,7 @@ text: { render("_heater_temperature", param_heater_name="heater_bed") } [display_data _multiextruder_16x4 printing_time] position: 2, 10 -text: { render("_printing_time") } +text: { "%6s" % (render("_printing_time").strip(),) } [display_data _multiextruder_16x4 print_status] position: 3, 0 @@ -185,9 +177,8 @@ text: [display_data _default_20x4 printing_time] position: 2, 14 text: - {% set seconds = printer.idle_timeout.printing_time %} ~clock~ - { "%02d:%02d" % (seconds // (60 * 60), (seconds // 60) % 60) } + { render("_printing_time") } [display_data _default_20x4 print_status] position: 3, 0 |