From 92cc2861598f797aebcbbb00195c1dbb4beeeac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janar=20S=C3=B6=C3=B6t?= Date: Sat, 20 Feb 2021 18:33:34 +0200 Subject: [PATCH] menu: Default menu should check extruders have heaters (#3969) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For the hotend targets check also available heaters. It'll solve crash when using shared heaters. Signed-off-by: Janar Sööt --- klippy/extras/display/menu.cfg | 4 ++-- 1 file 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