Skip to content

Fix code out of order in do move after z homing#28395

Open
ellensp wants to merge 2 commits into
MarlinFirmware:bugfix-2.1.xfrom
ellensp:fix-code-out-of-order-in-do_move_after_z_homing
Open

Fix code out of order in do move after z homing#28395
ellensp wants to merge 2 commits into
MarlinFirmware:bugfix-2.1.xfrom
ellensp:fix-code-out-of-order-in-do_move_after_z_homing

Conversation

@ellensp
Copy link
Copy Markdown
Contributor

@ellensp ellensp commented Apr 16, 2026

Description

In do_move_after_z_homing Z_POST_CLEARANCE is defined after the code that wants to use it (if not using proui)
This causes Z raise after after homing not to work.

I re ordered the code a little

After the code re order Z_POST_CLEARANCE is always defined, so I removed an redundant #ifdef Z_POST_CLEARANCE block and the else case that is never called.

Requirements

A Z axis, if a probe if present it is not used for homing, home using a z-stop
not using proui (as it defines its own Z_POST_CLEARANCE)

Benefits

Z raise after after homing functions correctly.

Configurations

Confgs from the issue
https://github.com/user-attachments/files/26753084/Configuration.zip

Related Issues

  • Bug Z axis doesnt raise after after homeing #28391
  • @Maker-Paul
    Copy link
    Copy Markdown

    This fixed my latest bugfix build.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    2 participants