This commit is contained in:
Cyril 2024-05-03 21:11:29 +02:00
parent bfc68e958c
commit 7bd9f81ac8
2 changed files with 6 additions and 4 deletions

View file

@ -158,9 +158,11 @@ gcode:
{% if printer['gcode_macro M600'].fan0_speed > 0 %}
{% set s_value = (printer['gcode_macro M600'].fan0_speed * 255 - printer['gcode_macro PRINTER_PARAM'].fan0_min) * 255 / (255 - printer['gcode_macro PRINTER_PARAM'].fan0_min)|float %}
M106 P0 S{s_value} G1
SET_GCODE_VARIABLE MACRO=M600 VARIABLE=fan0_speed VALUE=0
{% endif %}
SET_GCODE_VARIABLE MACRO=M600 VARIABLE=m600_state VALUE=0
SET_IDLE_TIMEOUT TIMEOUT=99999999
RESPOND TYPE=command MSG="action:prompt_end"
{% else %}
{% if printer.extruder.can_extrude|lower == 'true' %}
G91
@ -171,6 +173,5 @@ gcode:
RESPOND TYPE=command MSG="Extruder not hot enough!"
{% endif %}
{% endif %}
RESPOND TYPE=command MSG="action:prompt_end"
RESPOND TYPE=command MSG="Restarting print..."
RESPOND TYPE=command MSG="Resuming printing..."
RESUME_BASE {get_params}

View file

@ -158,9 +158,11 @@ gcode:
{% if printer['gcode_macro M600'].fan0_speed > 0 %}
{% set s_value = (printer['gcode_macro M600'].fan0_speed * 255 - printer['gcode_macro PRINTER_PARAM'].fan0_min) * 255 / (255 - printer['gcode_macro PRINTER_PARAM'].fan0_min)|float %}
M106 P0 S{s_value}
SET_GCODE_VARIABLE MACRO=M600 VARIABLE=fan0_speed VALUE=0
{% endif %}
SET_GCODE_VARIABLE MACRO=M600 VARIABLE=m600_state VALUE=0
SET_IDLE_TIMEOUT TIMEOUT=99999999
RESPOND TYPE=command MSG="action:prompt_end"
{% else %}
{% if printer.extruder.can_extrude|lower == 'true' %}
G91
@ -171,6 +173,5 @@ gcode:
RESPOND TYPE=command MSG="Extruder not hot enough!"
{% endif %}
{% endif %}
RESPOND TYPE=command MSG="action:prompt_end"
RESPOND TYPE=command MSG="Restarting print..."
RESPOND TYPE=command MSG="Resuming printing..."
RESUME_BASE {get_params}