Add a minimum bed temperature of 0 degrees

If the bed temperature is less than 2, the print job fails with an
error message complaining about an invalid temperature. This happens,
for instance, when printing ABS where the bed is not supposed to be
heated.

This change makes sure that the bed temperature cannot be negative.
This commit is contained in:
Björn Marschollek
2023-04-20 22:14:33 +02:00
parent 5e342261c8
commit 4a38d34a0e

View File

@@ -135,7 +135,7 @@ gcode:
{% set startY = printer.configfile.settings.safe_z_home.home_xy_position[1]|float %} {% set startY = printer.configfile.settings.safe_z_home.home_xy_position[1]|float %}
{% endif %} {% endif %}
{% set bedtempAlmost = (bedtemp - 2)|int %} {% set bedtempAlmost = (bedtemp - 2, 0)|max %}
{% set hotendtempStepOne = 150|int %} {% set hotendtempStepOne = 150|int %}
{% set hotendtempStepTwo = 170|int %} {% set hotendtempStepTwo = 170|int %}