Skip to content

Commit

Permalink
🩹 Apply 100% leveling correction below the bed
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Apr 10, 2022
1 parent 6cb1a4a commit 577831b
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 @@ -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;
Expand Down

0 comments on commit 577831b

Please sign in to comment.