This repository was archived by the owner on Dec 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +23
-7
lines changed
src/modules/mainsail/filesystem/home/pi/klipper_config Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -32,22 +32,38 @@ gcode:
32
32
{% else %}
33
33
{% set z_safe = max_z - act_z %}
34
34
{% endif %}
35
+ {%set min_extrude_temp = printer.configfile.settings[" extruder" ][" min_extrude_temp" ]|int %}
36
+ {%set act_extrude_temp = printer.extruder.temperature|int %}
35
37
# #### end of definitions #####
36
38
SAVE_GCODE_STATE NAME =PAUSE_state
37
39
BASE_PAUSE
38
40
G91
39
- G1 E-{E} F2100
40
- G1 Z{z_safe} F900
41
- G90
42
- G1 X{x_park} Y{y_park} F6000
43
-
41
+ {% if act_extrude_temp > min_extrude_temp %}
42
+ G1 E-{E} F2100
43
+ {% else %}
44
+ {action_respond_info(" Extruder not hot enough" )}
45
+ {% endif %}
46
+ {% if " xyz" in printer.toolhead.homed_axes %}
47
+ G1 Z{z_safe} F900
48
+ G90
49
+ G1 X{x_park} Y{y_park} F6000
50
+ {% else %}
51
+ {action_respond_info(" Printer not homed" )}
52
+ {% endif %}
53
+
44
54
[gcode_macro RESUME]
45
55
rename_existing: BASE_RESUME
46
56
gcode:
47
57
# #### read E from pause macro #####
48
58
{% set E = printer[" gcode_macro PAUSE" ].extrude|float %}
59
+ {%set min_extrude_temp = printer.configfile.settings[" extruder" ][" min_extrude_temp" ]|int %}
60
+ {%set act_extrude_temp = printer.extruder.temperature|int %}
49
61
# #### end of definitions #####
50
- G91
51
- G1 E{E} F2100
62
+ {% if act_extrude_temp > min_extrude_temp %}
63
+ G91
64
+ G1 E{E} F2100
65
+ {% else %}
66
+ {action_respond_info(" Extruder not hot enough" )}
67
+ {% endif %}
52
68
RESTORE_GCODE_STATE NAME =PAUSE_state
53
69
BASE_RESUME
You can’t perform that action at this time.
0 commit comments