Update
This commit is contained in:
parent
bfc68e958c
commit
7bd9f81ac8
2 changed files with 6 additions and 4 deletions
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue