From 6ce0f3dafbc4940b89c9a4bb0f3a7d452ec0b713 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Tue, 8 Dec 2020 19:54:31 -0800 Subject: [PATCH] Fix inconsistent lambda return type --- Marlin/src/module/probe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/probe.cpp b/Marlin/src/module/probe.cpp index 0bac312e1d..d17bb9ef38 100644 --- a/Marlin/src/module/probe.cpp +++ b/Marlin/src/module/probe.cpp @@ -517,11 +517,11 @@ bool Probe::probe_down_to_z(const float z, const feedRate_t fr_mm_s) { float Probe::run_z_probe(const bool sanity_check/*=true*/) { DEBUG_SECTION(log_probe, "Probe::run_z_probe", DEBUGGING(LEVELING)); - auto try_to_probe = [&](PGM_P const plbl, const float &z_probe_low_point, const feedRate_t fr_mm_s, const bool scheck, const float clearance) -> bool { + auto try_to_probe = [&](PGM_P const plbl, const float &z_probe_low_point, const feedRate_t fr_mm_s, const bool scheck, const float clearance) { // Do a first probe at the fast speed #if ENABLED(PROBE_TARE) - if(tare_z_probe()) return NAN; + if(tare_z_probe()) return true; #endif const bool probe_fail = probe_down_to_z(z_probe_low_point, fr_mm_s), // No probe trigger?