Skip to content

Commit

Permalink
park_extruder moves the correct extruder
Browse files Browse the repository at this point in the history
  • Loading branch information
matti125 committed Sep 3, 2021
1 parent adbbfb5 commit d0ea9b2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
[gcode_macro PARK_extruder]
gcode:
{ action_respond_info("Parking the leftmost extruder" ) }

#make sure we move the first carriage
SET_DUAL_CARRIAGE CARRIAGE=0
{% if not "x" in printer.toolhead.homed_axes %}
{ action_respond_info("Homing X" ) }
G28 X
Expand All @@ -17,7 +18,8 @@ gcode:
[gcode_macro PARK_extruder1]
gcode:
{ action_respond_info("Parking the rightmost extruder" ) }

#make sure we move the second carriage. After all, we do not know which carriage is active
SET_DUAL_CARRIAGE CARRIAGE=1
{% if not "x" in printer.toolhead.homed_axes %}
{ action_respond_info("Homing X" ) }
G28 X
Expand Down Expand Up @@ -62,8 +64,7 @@ gcode:
PARK_{printer.toolhead.extruder}
ACTIVATE_EXTRUDER EXTRUDER=extruder
SET_DUAL_CARRIAGE CARRIAGE=0

# run the range setting only once, in order to mis-set it after T1 target temp is set to zero
# run the range setting only once, in order not to mis-set it after T1 target temp is set to zero
{% if printer["gcode_macro set_stepper_x_range"].range_set == 0 %}
{ action_respond_info("Lefttmost extruder X-direction movement range not yet set, setting it now") }
set_stepper_x_range
Expand Down

0 comments on commit d0ea9b2

Please sign in to comment.