Skip to content

Commit

Permalink
Remove manually restoring z and utilizing RESTORE_GCODE_STATE macro call
Browse files Browse the repository at this point in the history
Co-authored-by: Branden Cash <[email protected]>
  • Loading branch information
jimmyjon711 and ammmze authored Oct 7, 2024
1 parent 18dccc4 commit a3b48fc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions AFC.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,9 +659,6 @@ def cmd_CHANGE_TOOL(self, gcmd):
cmd_RESTORE_CHANGE_TOOL_POS_help = "change filaments in tool head"
def cmd_RESTORE_CHANGE_TOOL_POS(self, gcmd):
if self.change_tool_pos:
restore_pos = self.change_tool_pos[:3]
self.toolhead.manual_move(restore_pos, self.tool_unload_speed)
self.toolhead.wait_moves()
# Restore previous state
self.change_tool_pos = None
self.gcode.run_script_from_command("RESTORE_GCODE_STATE NAME=_AFC_CHANGE_TOOL MOVE=1 MOVE_SPEED={}".format(self.tool_unload_speed))
Expand Down

0 comments on commit a3b48fc

Please sign in to comment.