aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorfleinze <florian@heinze.at>2021-03-07 19:48:54 +0100
committerGitHub <noreply@github.com>2021-03-07 13:48:54 -0500
commit153698c90d1fd81c8686a4b6c6a0d4d7d6a68904 (patch)
treebf5b3496b0c2c323ce0961fcb461d361c02096ff /klippy/extras
parent64b3e5642eafce951dd93be44c1b4c6a16b1e2fa (diff)
downloadkutter-153698c90d1fd81c8686a4b6c6a0d4d7d6a68904.tar.gz
kutter-153698c90d1fd81c8686a4b6c6a0d4d7d6a68904.tar.xz
kutter-153698c90d1fd81c8686a4b6c6a0d4d7d6a68904.zip
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 <florian@heinze.at>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/idle_timeout.py4
1 files changed, 3 insertions, 1 deletions
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
"""