Fix MIN_PROBE_EDGE bug in default ABL G29 (#16367)
This commit is contained in:
committed by
Scott Lahteine
parent
d7aee3b7b6
commit
3cade6245e
@ -56,8 +56,6 @@
|
||||
#include "../feature/backlash.h"
|
||||
#endif
|
||||
|
||||
xyz_pos_t probe_offset; // Initialized by settings.load()
|
||||
|
||||
#if ENABLED(BLTOUCH)
|
||||
#include "../feature/bltouch.h"
|
||||
#endif
|
||||
@ -86,6 +84,14 @@ xyz_pos_t probe_offset; // Initialized by settings.load()
|
||||
#define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)
|
||||
#include "../core/debug_out.h"
|
||||
|
||||
|
||||
xyz_pos_t probe_offset; // Initialized by settings.load()
|
||||
|
||||
#if HAS_PROBE_XY_OFFSET
|
||||
xyz_pos_t &probe_offset_xy = probe_offset;
|
||||
#endif
|
||||
|
||||
|
||||
#if ENABLED(Z_PROBE_SLED)
|
||||
|
||||
#ifndef SLED_DOCKING_OFFSET
|
||||
@ -698,7 +704,7 @@ float probe_at_point(const float &rx, const float &ry, const ProbePtRaise raise_
|
||||
xyz_pos_t npos = { rx, ry };
|
||||
if (probe_relative) {
|
||||
if (!position_is_reachable_by_probe(npos)) return NAN; // The given position is in terms of the probe
|
||||
npos -= probe_offset; // Get the nozzle position
|
||||
npos -= probe_offset_xy; // Get the nozzle position
|
||||
}
|
||||
else if (!position_is_reachable(npos)) return NAN; // The given position is in terms of the nozzle
|
||||
|
||||
|
Reference in New Issue
Block a user