Skip to content

Commit 577831b

Browse files
committed
🩹 Apply 100% leveling correction below the bed
See MarlinFirmware#24002
1 parent 6cb1a4a commit 577831b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/module/planner.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ class Planner {
592592
*/
593593
static float fade_scaling_factor_for_z(const_float_t rz) {
594594
static float z_fade_factor = 1;
595-
if (!z_fade_height) return 1;
595+
if (!z_fade_height || rz <= 0) return 1;
596596
if (rz >= z_fade_height) return 0;
597597
if (last_fade_z != rz) {
598598
last_fade_z = rz;

0 commit comments

Comments
 (0)