aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display
diff options
context:
space:
mode:
authorJanar Sööt <janar.soot@gmail.com>2021-02-20 18:33:34 +0200
committerGitHub <noreply@github.com>2021-02-20 11:33:34 -0500
commit92cc2861598f797aebcbbb00195c1dbb4beeeac5 (patch)
tree0a4df8cb194ab80b8d30da973bb47994d06475cb /klippy/extras/display
parent5a7fbe671e92533b593e11b809f5d72a5b841b34 (diff)
downloadkutter-92cc2861598f797aebcbbb00195c1dbb4beeeac5.tar.gz
kutter-92cc2861598f797aebcbbb00195c1dbb4beeeac5.tar.xz
kutter-92cc2861598f797aebcbbb00195c1dbb4beeeac5.zip
menu: Default menu should check extruders have heaters (#3969)
For the hotend targets check also available heaters. It'll solve crash when using shared heaters. Signed-off-by: Janar Sööt <janar.soot@gmail.com>
Diffstat (limited to 'klippy/extras/display')
-rw-r--r--klippy/extras/display/menu.cfg4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/display/menu.cfg b/klippy/extras/display/menu.cfg
index d7c10587..05d1df9b 100644
--- a/klippy/extras/display/menu.cfg
+++ b/klippy/extras/display/menu.cfg
@@ -471,7 +471,7 @@ name: Temperature
[menu __main __temp __hotend0_target]
type: input
-enable: {'extruder' in printer}
+enable: {('extruder' in printer) and ('extruder' in printer.heaters.available_heaters)}
name: {"Ex0:%3.0f (%4.0f)" % (menu.input, printer.extruder.temperature)}
input: {printer.extruder.target}
input_min: 0
@@ -481,7 +481,7 @@ gcode: M104 T0 S{'%.0f' % menu.input}
[menu __main __temp __hotend1_target]
type: input
-enable: {'extruder1' in printer}
+enable: {('extruder1' in printer) and ('extruder1' in printer.heaters.available_heaters)}
name: {"Ex1:%3.0f (%4.0f)" % (menu.input, printer.extruder1.temperature)}
input: {printer.extruder1.target}
input_min: 0