diff options
author | fleinze <florian@heinze.at> | 2021-03-07 19:48:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-07 13:48:54 -0500 |
commit | 153698c90d1fd81c8686a4b6c6a0d4d7d6a68904 (patch) | |
tree | bf5b3496b0c2c323ce0961fcb461d361c02096ff /klippy/extras | |
parent | 64b3e5642eafce951dd93be44c1b4c6a16b1e2fa (diff) | |
download | kutter-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.py | 4 |
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 """ |