Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home offset to probe limits #26257

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Marlin/src/module/probe.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ class Probe {
);
}

static float min_x() { return _min_x() TERN_(NOZZLE_AS_PROBE, TERN_(HAS_HOME_OFFSET, - home_offset.x)); }
static float max_x() { return _max_x() TERN_(NOZZLE_AS_PROBE, TERN_(HAS_HOME_OFFSET, - home_offset.x)); }
static float min_y() { return _min_y() TERN_(NOZZLE_AS_PROBE, TERN_(HAS_HOME_OFFSET, - home_offset.y)); }
static float max_y() { return _max_y() TERN_(NOZZLE_AS_PROBE, TERN_(HAS_HOME_OFFSET, - home_offset.y)); }
static float min_x() { return _min_x() TERN_(HAS_HOME_OFFSET, + (home_dir(X_AXIS) < 0 ? home_offset.x : 0)); }
static float max_x() { return _max_x() TERN_(HAS_HOME_OFFSET, - (home_dir(X_AXIS) > 0 ? home_offset.x : 0)); }
static float min_y() { return _min_y() TERN_(HAS_HOME_OFFSET, + (home_dir(Y_AXIS) < 0 ? home_offset.y : 0)); }
static float max_y() { return _max_y() TERN_(HAS_HOME_OFFSET, - (home_dir(Y_AXIS) > 0 ? home_offset.y : 0)); }

// constexpr helpers used in build-time static_asserts, relying on default probe offsets.
class build_time {
Expand Down
Loading