From 577831bf1a412a617b04a58551223903ff0a932f Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 10 Apr 2022 01:49:59 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Apply=20100%=20leveling=20correc?= =?UTF-8?q?tion=20below=20the=20bed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See #24002 --- Marlin/src/module/planner.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/module/planner.h b/Marlin/src/module/planner.h index eb4a34cec93e..40f60f91e72e 100644 --- a/Marlin/src/module/planner.h +++ b/Marlin/src/module/planner.h @@ -592,7 +592,7 @@ class Planner { */ static float fade_scaling_factor_for_z(const_float_t rz) { static float z_fade_factor = 1; - if (!z_fade_height) return 1; + if (!z_fade_height || rz <= 0) return 1; if (rz >= z_fade_height) return 0; if (last_fade_z != rz) { last_fade_z = rz;