diff --git a/hw.cfg b/hw.cfg index ff0813a..898de0e 100644 --- a/hw.cfg +++ b/hw.cfg @@ -75,16 +75,19 @@ pressure_advance = 0.04 [filament_switch_sensor filament_sensor] pause_on_runout: False runout_gcode: - M117 Out of Filament - #positions here are in printer coordinates eg if you have a 300mm bed and your sensor is 7cm past the - #max y position then y_offset should be 370 - #{% set x_offset = 150 %} #approximate x location of the runout sensor - #{% set y_offset = 370 %} #approximate y location of the runout sensor - #z location not used but this can be easily extended to include a z offset if needed - #{% set current_x = printer.toolhead.position.x %} - #{% set current_y = printer.toolhead.position.y %} - #{% set distance = ((x_offset - current_x)**2 + (y_offset - current_y)**2)**(1/2) %} - PAUSE_AFTER_D D=640 + M600 + +#runout_gcode: +# #M117 Out of Filament +# #positions here are in printer coordinates eg if you have a 300mm bed and your sensor is 7cm past the +# #max y position then y_offset should be 370 +# #{% set x_offset = 150 %} #approximate x location of the runout sensor +# #{% set y_offset = 370 %} #approximate y location of the runout sensor +# #z location not used but this can be easily extended to include a z offset if needed +# #{% set current_x = printer.toolhead.position.x %} +# #{% set current_y = printer.toolhead.position.y %} +# #{% set distance = ((x_offset - current_x)**2 + (y_offset - current_y)**2)**(1/2) %} +# #PAUSE_AFTER_D D=640 # insert_gcode: # M117 Resuming # M602