Merge branch '51-m175v2-probe-too-high-error' into 'master'

Resolve "M175v2 probe too high error"

Closes #51

See merge request lulzbot3d/marlin!33
This commit is contained in:
Brian Kahl 2021-10-11 18:36:57 +00:00
commit 0b05ce069e

View File

@ -594,7 +594,7 @@ float Probe::run_z_probe(const bool sanity_check/*=true*/) {
// Do a first probe at the fast speed
const bool probe_fail = probe_down_to_z(z_probe_low_point, fr_mm_s), // No probe trigger?
early_fail = (scheck && current_position.z > -offset.z + clearance); // Probe triggered too high?
early_fail = (scheck && current_position.z > -offset.z + clearance + 2); // Probe triggered too high? Adding 2mm to the clearance for a wider window for a fail with M175v2.0
#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING) && (probe_fail || early_fail)) {
DEBUG_ECHOPGM_P(plbl);