From 3a85c0e5320eea8b23eaa7be7a14fc8786ff739f Mon Sep 17 00:00:00 2001 From: Bassam Husain Date: Sat, 22 Apr 2023 15:03:30 -0400 Subject: [PATCH] Pulling in print_start from master branch. --- cfgs/misc-macros.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cfgs/misc-macros.cfg b/cfgs/misc-macros.cfg index ad5ace4..20acd1d 100644 --- a/cfgs/misc-macros.cfg +++ b/cfgs/misc-macros.cfg @@ -135,9 +135,9 @@ gcode: {% set startY = printer.configfile.settings.safe_z_home.home_xy_position[1]|float %} {% endif %} - {% set bedtempAlmost = (bedtemp - 2)|int %} - {% set hotendtempStepOne = 150|int %} - {% set hotendtempStepTwo = 170|int %} + {% set bedtempAlmost = (bedtemp - 2, 0)|max %} + {% set hotendtempStepOne = ((hotendtemp, printer[printer.toolhead.extruder].temperature|int)|min, 150)|max %} + {% set hotendtempStepTwo = ((hotendtemp, printer[printer.toolhead.extruder].temperature|int)|min, 170)|max %} BED_MESH_PROFILE LOAD=default ; NOTE if not using a mesh, comment out this line ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1