From 153698c90d1fd81c8686a4b6c6a0d4d7d6a68904 Mon Sep 17 00:00:00 2001 From: fleinze Date: Sun, 7 Mar 2021 19:48:54 +0100 Subject: [PATCH] idle_timeout: change standard timeout g-code (#4018) Machines that have no heaters produce an error when the idle timeout occurs. This commit fixes this by checking if there are any heaters to turn off. Signed-off-by: Florian Heinze --- klippy/extras/idle_timeout.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/klippy/extras/idle_timeout.py b/klippy/extras/idle_timeout.py index 9a2d02cb..9a4cd450 100644 --- a/klippy/extras/idle_timeout.py +++ b/klippy/extras/idle_timeout.py @@ -6,7 +6,9 @@ import logging DEFAULT_IDLE_GCODE = """ -TURN_OFF_HEATERS +{% if 'heaters' in printer %} + TURN_OFF_HEATERS +{% endif %} M84 """