From 3e904542387bad9db46e19e7dd9581d1e0d26532 Mon Sep 17 00:00:00 2001 From: Kyle Krenzer Date: Fri, 4 Sep 2026 22:41:30 -0700 Subject: [PATCH] macros: restore absolute positioning after PRINT_END and before homing Z Cancelling a print that is paused at the purge tray left Klipper in relative mode: PRINT_END switches to G91 for its lift and relies on MOVE_TO_TRAY for the G90, but MOVE_TO_TRAY returns early when the head is already at the tray. M84 then unhomes the axes. The next G28 takes the homing override's FORCE_MOVE branch, which does not issue G90 either, so its "G0 X128 Y128" runs as a relative move and Klipper refuses it: Move out of range: 364.000 156.000 170.527 That blocks every homing attempt, including AFC's auto-home on T0 and the screen's Home button, until Klipper is restarted. Force G90 in both places. Co-Authored-By: Claude Fable 5.1 --- meta-opencentauri/recipes-apps/klipper/files/macros.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-opencentauri/recipes-apps/klipper/files/macros.cfg b/meta-opencentauri/recipes-apps/klipper/files/macros.cfg index 35a4c9d..17616ef 100644 --- a/meta-opencentauri/recipes-apps/klipper/files/macros.cfg +++ b/meta-opencentauri/recipes-apps/klipper/files/macros.cfg @@ -182,6 +182,7 @@ gcode: {% endif %} {% endif %} + G90 ; back to absolute positioning, MOVE_TO_TRAY returns early when already at the tray MOVE_TO_TRAY {% endif %} TURN_OFF_FANS @@ -573,6 +574,7 @@ gcode: G28 Y {% endif %} {% if 'Z' in rawparams %} + G90 ; the FORCE_MOVE branch above leaves whatever positioning mode was active G0 X128 Y128 F6000 G28 Z {% endif %}