diff --git a/k1/start_end.cfg b/k1/start_end.cfg index c903301..0d60093 100644 --- a/k1/start_end.cfg +++ b/k1/start_end.cfg @@ -55,6 +55,8 @@ variable_speed_hop: 15.0 variable_speed_move: 100.0 # do not change this, this handles cancel print variable_user_cancel_macro: "_ON_CANCEL" +# on pause the idle timeout will be set to 5 seconds and will then cool the nozzle +variable_idle_timeout: 5 gcode: [virtual_pins] @@ -73,7 +75,10 @@ unretract_speed: 30 timeout: 3600 gcode: {% if printer.pause_resume.is_paused %} - RESPOND TYPE=command MSG='Printer is paused, timeout bypassed' + SET_GCODE_VARIABLE MACRO=RESUME VARIABLE=idle_state VALUE=True + {% set preheat_nozzle_temp = printer["gcode_macro _START_END_PARAMS"].start_preheat_nozzle_temp %} + RESPOND TYPE=command MSG='Cooling nozzle to {preheat_nozzle_temp}c to prevent ooze' + M104 S{preheat_nozzle_temp} {% else %} RESPOND TYPE=command MSG='Timeout Reached - Turning off heaters and motors' diff --git a/k1/useful_macros.cfg b/k1/useful_macros.cfg index 0b310c5..a8c588c 100644 --- a/k1/useful_macros.cfg +++ b/k1/useful_macros.cfg @@ -337,7 +337,8 @@ gcode: description: Filament Change gcode: RESPOND TYPE=command MSG="Print paused for filament change!" - PAUSE + PAUSE RESTORE=0 + _UNLOAD_FILAMENT M106 P0 S0 M106 P2 S0