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:
fleinze 2021-03-07 19:48:54 +01:00 committed by GitHub
parent 64b3e5642e
commit 153698c90d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@
import logging
DEFAULT_IDLE_GCODE = """
TURN_OFF_HEATERS
{% if 'heaters' in printer %}
TURN_OFF_HEATERS
{% endif %}
M84
"""