Skip to content

Commit

Permalink
🩹 Apply 100% leveling correction below the bed
Browse files Browse the repository at this point in the history
See #24002
  • Loading branch information
thinkyhead committed May 7, 2022
1 parent cd5c5ea commit eada17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/module/planner.h
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,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;
Expand Down

0 comments on commit eada17e

Please sign in to comment.