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>
This commit is contained in:
parent
64b3e5642e
commit
153698c90d
|
@ -6,7 +6,9 @@
|
|||
import logging
|
||||
|
||||
DEFAULT_IDLE_GCODE = """
|
||||
TURN_OFF_HEATERS
|
||||
{% if 'heaters' in printer %}
|
||||
TURN_OFF_HEATERS
|
||||
{% endif %}
|
||||
M84
|
||||
"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue