aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-03-04 19:20:04 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-03-13 21:50:38 -0400
commit5e39d346eda7e3dfd5db6d535d0378ec1498e155 (patch)
treed87c4ff097deb6afe0b9221ae024ce68dad86a70
parentf2dd4b001db3055632dce7ac6706a27ae571337e (diff)
downloadkutter-5e39d346eda7e3dfd5db6d535d0378ec1498e155.tar.gz
kutter-5e39d346eda7e3dfd5db6d535d0378ec1498e155.tar.xz
kutter-5e39d346eda7e3dfd5db6d535d0378ec1498e155.zip
display: Use the active extruder in the default 16x4 screen layout
Change the default layout to show the active extruder (not always the first extruder). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--docs/Config_Changes.md6
-rw-r--r--klippy/extras/display/display.cfg4
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md
index eb4717f8..2ef712e4 100644
--- a/docs/Config_Changes.md
+++ b/docs/Config_Changes.md
@@ -6,6 +6,12 @@ All dates in this document are approximate.
# Changes
+20200313: The default lcd layout for multi-extruder printers with a
+16x4 screen has changed. The single extruder screen layout is now the
+default and it will show the currently active extruder. To use the
+previous display layout set "display_group: _multiextruder_16x4" in
+the [display] section of the printer.cfg file.
+
20200308: The menu "deck" and "card" options were removed. To
customize the layout of an lcd screen use the new display_data config
sections (see config/example-extras.cfg for the details).
diff --git a/klippy/extras/display/display.cfg b/klippy/extras/display/display.cfg
index cac49319..38b3d925 100644
--- a/klippy/extras/display/display.cfg
+++ b/klippy/extras/display/display.cfg
@@ -73,7 +73,9 @@ text:
[display_data _default_16x4 extruder]
position: 0, 0
-text: { render("_heater_temperature", param_heater_name="extruder") }
+text:
+ {% set active_extruder = printer.toolhead.extruder %}
+ { render("_heater_temperature", param_heater_name=active_extruder) }
[display_data _default_16x4 fan]
position: 0, 10