Merge pull request #22 from gennro/main

This commit is contained in:
sorted01 2023-09-16 21:10:28 +02:00 committed by GitHub
commit e2c15f0677
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ gcode:
{% set current_loc_x = printer.gcode_move.gcode_position.x %} {% set current_loc_x = printer.gcode_move.gcode_position.x %}
{% set current_loc_y = printer.gcode_move.gcode_position.y %} {% set current_loc_y = printer.gcode_move.gcode_position.y %}
SET_PRESSURE_ADVANCE ADVANCE=0 SAVE_GCODE_STATE NAME=cut_filament_state
{% if ("x" not in printer.toolhead.homed_axes) or ("y" not in printer.toolhead.homed_axes) %} {% if ("x" not in printer.toolhead.homed_axes) or ("y" not in printer.toolhead.homed_axes) %}
G28 X Y G28 X Y
@ -86,7 +86,7 @@ gcode:
M400 M400
M117 Filament cut! M117 Filament cut!
RESTORE_GCODE_STATE NAME=MMU_state MOVE=1 MOVE_SPEED={travel_spd} #restores MMU state to bring the toolhead back over the purge block after a cut so no oozing. RESTORE_GCODE_STATE NAME=cut_filament_state MOVE=1 MOVE_SPEED={travel_spd}
[gcode_macro _MOVE_TO_CUTTER_PIN] [gcode_macro _MOVE_TO_CUTTER_PIN]
description: helper to move the toolhead to the target pin in either safe or faster way, depending on toolhead clearance. description: helper to move the toolhead to the target pin in either safe or faster way, depending on toolhead clearance.