From 1d7fb010af75c4d1cbea7e37893a06a6401a9b80 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sun, 24 Jul 2022 08:51:48 +0200 Subject: [PATCH] refactor: remove unused kiauh_macros.cfg Signed-off-by: Dominik Willner --- resources/kiauh_macros.cfg | 59 -------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 resources/kiauh_macros.cfg diff --git a/resources/kiauh_macros.cfg b/resources/kiauh_macros.cfg deleted file mode 100644 index 9f4cf1f..0000000 --- a/resources/kiauh_macros.cfg +++ /dev/null @@ -1,59 +0,0 @@ -################################################################################ -# ~~~~~~~~~~~~~~~~~~~~~~~~ AUTOCREATED WITH KIAUH ~~~~~~~~~~~~~~~~~~~~~~~~~~ # -################################################################################ -# Recommended macros and config entries if you use Mainsail or Fluidd! # -# You can edit or delete those macros if you already defined them elsewhere! # -################################################################################ - -[pause_resume] - -[display_status] - -[gcode_macro CANCEL_PRINT] -rename_existing: BASE_CANCEL_PRINT -gcode: - TURN_OFF_HEATERS - CLEAR_PAUSE - SDCARD_RESET_FILE - BASE_CANCEL_PRINT - -[gcode_macro PAUSE] -rename_existing: BASE_PAUSE -gcode: - ##### set defaults ##### - {% set x = params.X|default(230) %} #edit to your park position - {% set y = params.Y|default(230) %} #edit to your park position - {% set z = params.Z|default(10)|float %} #edit to your park position - {% set e = params.E|default(1) %} #edit to your retract length - ##### calculate save lift position ##### - {% set max_z = printer.toolhead.axis_maximum.z|float %} - {% set act_z = printer.toolhead.position.z|float %} - {% set lift_z = z|abs %} - {% if act_z < (max_z - lift_z) %} - {% set z_safe = lift_z %} - {% else %} - {% set z_safe = max_z - act_z %} - {% endif %} - ##### end of definitions ##### - SAVE_GCODE_STATE NAME=PAUSE_state - BASE_PAUSE - G91 - G1 E-{e} F2100 - G1 Z{z_safe} - G90 - G1 X{x} Y{y} F6000 - - -[gcode_macro RESUME] -rename_existing: BASE_RESUME -gcode: - ##### set defaults ##### - {% set e = params.E|default(1) %} #edit to your retract length - G91 - G1 E{e} F2100 - G90 - RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1 - BASE_RESUME - -################################################################################ -################################################################################