Skip to content

Commit

Permalink
Avoid cooling hotend in extrduer_preheating #495
Browse files Browse the repository at this point in the history
  • Loading branch information
elpopo-eng committed Feb 23, 2024
1 parent a3034a1 commit d65c9f2
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions macros/base/start_print.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ gcode:
# Preheat the nozzle to safe probing temperature.
{% set safe_extruder_temp = printer["gcode_macro _USER_VARIABLES"].safe_extruder_temp|float %}
{% set status_leds_enabled = printer["gcode_macro _USER_VARIABLES"].status_leds_enabled %}
{% set probe_type_enabled = printer["gcode_macro _USER_VARIABLES"].probe_type_enabled %}
{% set verbose = printer["gcode_macro _USER_VARIABLES"].verbose %}

{% if status_leds_enabled %}
Expand All @@ -423,10 +424,22 @@ gcode:
RESPOND MSG="Pre-heating the nozzle to a safe temperature..."
{% endif %}

M109 S{safe_extruder_temp}

{% if verbose %}
RESPOND MSG="Extruder at safe temperature of {safe_extruder_temp} degrees"
{% if probe_type_enabled == "vorontap" %}
M109 S{safe_extruder_temp}
{% if verbose %}
RESPOND MSG="Extruder at safe temperature of {safe_extruder_temp} degrees"
{% endif %}
{% else %}
{% if printer.extruder.target < safe_extruder_temp %}
M104 S{safe_extruder_temp}
{% if verbose %}
RESPOND MSG="Extruder is heating at temperature of {safe_extruder_temp} degrees"
{% endif %}
{% else %}
{% if verbose %}
RESPOND MSG="Extruder is already hot"
{% endif %}
{% endif %}
{% endif %}


Expand Down

0 comments on commit d65c9f2

Please sign in to comment.